diff options
author | Ben Collins <ben.collins@ubuntu.com> | 2006-11-23 13:59:48 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-07 23:11:55 +0100 |
commit | ed30c26ee809b060f437fd9f1b3453e1d0375e32 (patch) | |
tree | 00daeacae861f1a544ed346d5ce4f26700f8f6ba /drivers/ieee1394/sbp2.c | |
parent | 9b7d9c096dd4e4baacc21b2588662bbb56f36c4e (diff) | |
download | kernel_samsung_smdk4412-ed30c26ee809b060f437fd9f1b3453e1d0375e32.zip kernel_samsung_smdk4412-ed30c26ee809b060f437fd9f1b3453e1d0375e32.tar.gz kernel_samsung_smdk4412-ed30c26ee809b060f437fd9f1b3453e1d0375e32.tar.bz2 |
ieee1394: Consolidate driver registering
This patch consolidates some bookkeeping for driver registering. It
closely models what pci_register_driver() does. The main addition is
that the owner of the driver is set, so we get a proper symlink
for /sys/bus/ieee1394/driver/*/module.
Also moves setting of name and bus type into nodemgr. Because of this,
we can remove the EXPORT_SYMBOL for ieee1394_bus_type, since it's now
only used in ieee1394.ko.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/sbp2.c')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index ab70598..ffcd9e4 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c @@ -259,12 +259,10 @@ static int sbp2_remove(struct device *); static int sbp2_update(struct unit_directory *); static struct hpsb_protocol_driver sbp2_driver = { - .name = "SBP2 Driver", + .name = SBP2_DEVICE_NAME, .id_table = sbp2_id_table, .update = sbp2_update, .driver = { - .name = SBP2_DEVICE_NAME, - .bus = &ieee1394_bus_type, .probe = sbp2_probe, .remove = sbp2_remove, }, |