Переглянути джерело

[SCSI] osd_uld: Remove creation of osd_scsi class symlink

Remove the creation of the symlink from the device to
it's class. On modern systems this is already created by
a udev rule and would WARN on load. On old systems it is
not needed, none of the current osd user-mode tools use
this link.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Boaz Harrosh 16 роки тому
батько
коміт
2df71b1a5b
1 змінених файлів з 0 додано та 6 видалено
  1. 0 6
      drivers/scsi/osd/osd_uld.c

+ 0 - 6
drivers/scsi/osd/osd_uld.c

@@ -345,10 +345,6 @@ static int osd_probe(struct device *dev)
 	}
 	}
 
 
 	dev_set_drvdata(oud->class_member, oud);
 	dev_set_drvdata(oud->class_member, oud);
-	error = sysfs_create_link(&scsi_device->sdev_gendev.kobj,
-				  &oud->class_member->kobj, osd_symlink);
-	if (error)
-		OSD_ERR("warning: unable to make symlink\n");
 
 
 	OSD_INFO("osd_probe %s\n", disk->disk_name);
 	OSD_INFO("osd_probe %s\n", disk->disk_name);
 	return 0;
 	return 0;
@@ -377,8 +373,6 @@ static int osd_remove(struct device *dev)
 			scsi_device);
 			scsi_device);
 	}
 	}
 
 
-	sysfs_remove_link(&oud->od.scsi_device->sdev_gendev.kobj, osd_symlink);
-
 	if (oud->class_member)
 	if (oud->class_member)
 		device_destroy(osd_sysfs_class,
 		device_destroy(osd_sysfs_class,
 			       MKDEV(SCSI_OSD_MAJOR, oud->minor));
 			       MKDEV(SCSI_OSD_MAJOR, oud->minor));