Commit 9c817b39 authored by Patrick Mochel's avatar Patrick Mochel

fixup users of device_remove_file to pass a struct device_attribute, instead of a char *

parent 5509cd36
......@@ -1556,8 +1556,8 @@ static void sg_detach(Scsi_Device * scsidp)
}
SCSI_LOG_TIMEOUT(3, printk("sg_detach: dev=%d, dirty\n", k));
devfs_unregister (sdp->de);
device_remove_file(&sdp->sg_driverfs_dev,sg_device_type_file.name);
device_remove_file(&sdp->sg_driverfs_dev,sg_device_kdev_file.name);
device_remove_file(&sdp->sg_driverfs_dev,&sg_device_type_file);
device_remove_file(&sdp->sg_driverfs_dev,&sg_device_kdev_file);
put_device(&sdp->sg_driverfs_dev);
sdp->de = NULL;
if (NULL == sdp->headfp) {
......
......@@ -3785,9 +3785,9 @@ static void st_detach(Scsi_Device * SDp)
devfs_unregister (tpnt->de_r[mode]);
tpnt->de_r[mode] = NULL;
device_remove_file(&tpnt->driverfs_dev_r[mode],
st_device_type_file.name);
&st_device_type_file);
device_remove_file(&tpnt->driverfs_dev_r[mode],
st_device_kdev_file.name);
&st_device_kdev_file);
put_device(&tpnt->driverfs_dev_r[mode]);
devfs_unregister (tpnt->de_n[mode]);
tpnt->de_n[mode] = NULL;
......
......@@ -317,17 +317,17 @@ void driverfs_remove_partitions(struct gendisk *hd, int minor)
if ((p[part].nr_sects >= 1)) {
current_driverfs_dev = &p[part].hd_driverfs_dev;
device_remove_file(current_driverfs_dev,
partition_device_type_file.name);
&partition_device_type_file);
device_remove_file(current_driverfs_dev,
partition_device_kdev_file.name);
&partition_device_kdev_file);
put_device(current_driverfs_dev);
}
}
current_driverfs_dev = &p->hd_driverfs_dev;
device_remove_file(current_driverfs_dev,
partition_device_type_file.name);
&partition_device_type_file);
device_remove_file(current_driverfs_dev,
partition_device_kdev_file.name);
&partition_device_kdev_file);
put_device(current_driverfs_dev);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment