From: Mike Anderson <andmike@us.ibm.com>
To: linux-scsi@vger.kernel.org, mochel@osdl.org,
linux-hotplug-devel@lists.sourceforge.net,
mdharm-scsi@one-eyed-alien.net
Subject: [RFC] scsi host sysfs support [3/4]
Date: Mon, 14 Apr 2003 11:41:25 -0700 [thread overview]
Message-ID: <20030414184125.GD4162@beaverton.ibm.com> (raw)
In-Reply-To: <20030414184008.GC4162@beaverton.ibm.com>
-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);
}
_
next prev parent reply other threads:[~2003-04-14 18:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-14 18:37 [RFC] scsi host sysfs support [0/4] Mike Anderson
2003-04-14 18:39 ` [RFC] scsi host sysfs support [1/4] Mike Anderson
2003-04-14 18:40 ` [RFC] scsi host sysfs support [2/4] Mike Anderson
2003-04-14 18:41 ` Mike Anderson [this message]
2003-04-14 18:42 ` [RFC] scsi host sysfs support [4/4] Mike Anderson
2003-04-14 23:02 ` [RFC] scsi host sysfs support [0/4] Patrick Mochel
2003-04-14 23:47 ` Mike Anderson
2003-04-14 23:48 ` Patrick Mochel
2003-04-15 0:25 ` Mike Anderson
-- strict thread matches above, loose matches on Subject: below --
2003-04-14 18:41 [RFC] scsi host sysfs support [3/4] Mike Anderson
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=20030414184125.GD4162@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=linux-hotplug-devel@lists.sourceforge.net \
--cc=linux-scsi@vger.kernel.org \
--cc=mdharm-scsi@one-eyed-alien.net \
--cc=mochel@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.