From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Anderson Date: Mon, 14 Apr 2003 18:41:25 +0000 Subject: [RFC] scsi host sysfs support [3/4] Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -andmike -- Michael Anderson andmike@us.ibm.com DESC This patch adds a scsi subsystem to the sysfs tree. EDESC drivers/scsi/scsi_sysfs.c | 3 +++ 1 files changed, 3 insertions(+) diff -puN drivers/scsi/scsi_sysfs.c~sysfs-scsi-subsys drivers/scsi/scsi_sysfs.c --- sysfs-bleed-2.5/drivers/scsi/scsi_sysfs.c~sysfs-scsi-subsys Mon Apr 14 10:11:35 2003 +++ sysfs-bleed-2.5-andmike/drivers/scsi/scsi_sysfs.c Mon Apr 14 10:11:35 2003 @@ -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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel