aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/raw1394.c
diff options
context:
space:
mode:
authorBen Collins <ben.collins@ubuntu.com>2006-11-23 13:59:48 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2006-12-07 17:11:55 -0500
commited30c26ee809b060f437fd9f1b3453e1d0375e32 (patch)
tree00daeacae861f1a544ed346d5ce4f26700f8f6ba /drivers/ieee1394/raw1394.c
parent9b7d9c096dd4e4baacc21b2588662bbb56f36c4e (diff)
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/raw1394.c')
-rw-r--r--drivers/ieee1394/raw1394.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c
index 4889383d3091..ad2108f27a04 100644
--- a/drivers/ieee1394/raw1394.c
+++ b/drivers/ieee1394/raw1394.c
@@ -2987,12 +2987,8 @@ static struct ieee1394_device_id raw1394_id_table[] = {
2987MODULE_DEVICE_TABLE(ieee1394, raw1394_id_table); 2987MODULE_DEVICE_TABLE(ieee1394, raw1394_id_table);
2988 2988
2989static struct hpsb_protocol_driver raw1394_driver = { 2989static struct hpsb_protocol_driver raw1394_driver = {
2990 .name = "raw1394 Driver", 2990 .name = "raw1394",
2991 .id_table = raw1394_id_table, 2991 .id_table = raw1394_id_table,
2992 .driver = {
2993 .name = "raw1394",
2994 .bus = &ieee1394_bus_type,
2995 },
2996}; 2992};
2997 2993
2998/******************************************************************************/ 2994/******************************************************************************/