aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/osd/osd_uld.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/osd/osd_uld.c')
-rw-r--r--drivers/scsi/osd/osd_uld.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/osd/osd_uld.c b/drivers/scsi/osd/osd_uld.c
index f8b1a749958b..f644c9571eab 100644
--- a/drivers/scsi/osd/osd_uld.c
+++ b/drivers/scsi/osd/osd_uld.c
@@ -345,10 +345,6 @@ static int osd_probe(struct device *dev)
345 } 345 }
346 346
347 dev_set_drvdata(oud->class_member, oud); 347 dev_set_drvdata(oud->class_member, oud);
348 error = sysfs_create_link(&scsi_device->sdev_gendev.kobj,
349 &oud->class_member->kobj, osd_symlink);
350 if (error)
351 OSD_ERR("warning: unable to make symlink\n");
352 348
353 OSD_INFO("osd_probe %s\n", disk->disk_name); 349 OSD_INFO("osd_probe %s\n", disk->disk_name);
354 return 0; 350 return 0;
@@ -377,8 +373,6 @@ static int osd_remove(struct device *dev)
377 scsi_device); 373 scsi_device);
378 } 374 }
379 375
380 sysfs_remove_link(&oud->od.scsi_device->sdev_gendev.kobj, osd_symlink);
381
382 if (oud->class_member) 376 if (oud->class_member)
383 device_destroy(osd_sysfs_class, 377 device_destroy(osd_sysfs_class,
384 MKDEV(SCSI_OSD_MAJOR, oud->minor)); 378 MKDEV(SCSI_OSD_MAJOR, oud->minor));