/* Adds the RIO device to the global device list and adds the RIO device to the RIO device list. Creates the generic sysfs nodes for an RIO device.  */
static int __devinit rio_add_device(struct rio_dev *rdev)
/* Adds the RIO device to the global device list and adds the RIO device to the RIO device list. Creates the generic sysfs nodes for an RIO device.  */
static int __devinit rio_add_device(struct rio_dev *rdev)
{
	int err;
	err = device_add(&rdev->dev);
	if (err)
		return err;
	spin_lock(&rio_global_list_lock);
	list_add_tail(&rdev->global_list, &rio_devices);
	spin_unlock(&rio_global_list_lock);
	rio_create_sysfs_dev_files(rdev);
	return 0;
}