Skip to contentSkip to conversation

scsi host sysfs support [3/4]

RFC New Mike Anderson 1 participant 1 message Apr 14, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

RFC 1/1 scsi host sysfs support [3/4]

-andmike
--
Michael Anderson
[email protected]

DESC
This patch adds a scsi subsystem to the sysfs tree. EDESC

 drivers/scsi/scsi_sysfs.c |    3 +++
 1 files changed, 3 insertions(+)
drivers/scsi/scsi_sysfs.c renamed from drivers/scsi/scsi_sysfs.c~sysfs-scsi-subsys +3 -0
diff -puN drivers/scsi/scsi_sysfs.c~sysfs-scsi-subsys drivers/scsi/scsi_sysfs.c
@@ -107,10 +107,12 @@ static struct bus_type scsi_bus_type = {
         .match		= scsi_bus_match,
 };
 
+static decl_subsys(scsi, NULL);
 
 int scsi_sysfs_register(void)
 {
 	bus_register(&scsi_bus_type);
+	subsystem_register(&scsi_subsys);
 	devclass_register(&shost_devclass);
 
 	return 0;
@@ -119,6 +121,7 @@ int scsi_sysfs_register(void)
 void scsi_sysfs_unregister(void)
 {
 	devclass_unregister(&shost_devclass);
+	subsystem_unregister(&scsi_subsys);
 	bus_unregister(&scsi_bus_type);
 }
 

_

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel