linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] scsi host sysfs support [3/4]
@ 2003-04-14 18:41 Mike Anderson
  0 siblings, 0 replies; only message in thread
From: Mike Anderson @ 2003-04-14 18:41 UTC (permalink / raw)
  To: linux-hotplug

-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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-14 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-14 18:41 [RFC] scsi host sysfs support [3/4] Mike Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).