From: Mike Anderson <andmike@us.ibm.com>
To: linux-hotplug@vger.kernel.org
Subject: [RFC] scsi host sysfs support [3/4]
Date: Mon, 14 Apr 2003 18:41:25 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-105034565625654@msgid-missing> (raw)
-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
reply other threads:[~2003-04-14 18:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-105034565625654@msgid-missing \
--to=andmike@us.ibm.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).