diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/dv1394.c | 3 | ||||
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 6 | ||||
-rw-r--r-- | drivers/ieee1394/raw1394.c | 1 | ||||
-rw-r--r-- | drivers/ieee1394/video1394.c | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c index 65722117ab6e..8c72f360f2d5 100644 --- a/drivers/ieee1394/dv1394.c +++ b/drivers/ieee1394/dv1394.c | |||
@@ -2179,8 +2179,7 @@ static struct ieee1394_device_id dv1394_id_table[] = { | |||
2179 | MODULE_DEVICE_TABLE(ieee1394, dv1394_id_table); | 2179 | MODULE_DEVICE_TABLE(ieee1394, dv1394_id_table); |
2180 | 2180 | ||
2181 | static struct hpsb_protocol_driver dv1394_driver = { | 2181 | static struct hpsb_protocol_driver dv1394_driver = { |
2182 | .name = "dv1394", | 2182 | .name = "dv1394", |
2183 | .id_table = dv1394_id_table, | ||
2184 | }; | 2183 | }; |
2185 | 2184 | ||
2186 | 2185 | ||
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index 511e4321c6b6..70afa3786f3f 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -701,7 +701,11 @@ static int nodemgr_bus_match(struct device * dev, struct device_driver * drv) | |||
701 | return 0; | 701 | return 0; |
702 | 702 | ||
703 | driver = container_of(drv, struct hpsb_protocol_driver, driver); | 703 | driver = container_of(drv, struct hpsb_protocol_driver, driver); |
704 | for (id = driver->id_table; id->match_flags != 0; id++) { | 704 | id = driver->id_table; |
705 | if (!id) | ||
706 | return 0; | ||
707 | |||
708 | for (; id->match_flags != 0; id++) { | ||
705 | if ((id->match_flags & IEEE1394_MATCH_VENDOR_ID) && | 709 | if ((id->match_flags & IEEE1394_MATCH_VENDOR_ID) && |
706 | id->vendor_id != ud->vendor_id) | 710 | id->vendor_id != ud->vendor_id) |
707 | continue; | 711 | continue; |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index 37e7e109af38..3634785d3b4b 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
@@ -2959,7 +2959,6 @@ MODULE_DEVICE_TABLE(ieee1394, raw1394_id_table); | |||
2959 | 2959 | ||
2960 | static struct hpsb_protocol_driver raw1394_driver = { | 2960 | static struct hpsb_protocol_driver raw1394_driver = { |
2961 | .name = "raw1394", | 2961 | .name = "raw1394", |
2962 | .id_table = raw1394_id_table, | ||
2963 | }; | 2962 | }; |
2964 | 2963 | ||
2965 | /******************************************************************************/ | 2964 | /******************************************************************************/ |
diff --git a/drivers/ieee1394/video1394.c b/drivers/ieee1394/video1394.c index bd28adfd7afc..cc240b2e72d9 100644 --- a/drivers/ieee1394/video1394.c +++ b/drivers/ieee1394/video1394.c | |||
@@ -1315,8 +1315,7 @@ static struct ieee1394_device_id video1394_id_table[] = { | |||
1315 | MODULE_DEVICE_TABLE(ieee1394, video1394_id_table); | 1315 | MODULE_DEVICE_TABLE(ieee1394, video1394_id_table); |
1316 | 1316 | ||
1317 | static struct hpsb_protocol_driver video1394_driver = { | 1317 | static struct hpsb_protocol_driver video1394_driver = { |
1318 | .name = VIDEO1394_DRIVER_NAME, | 1318 | .name = VIDEO1394_DRIVER_NAME, |
1319 | .id_table = video1394_id_table, | ||
1320 | }; | 1319 | }; |
1321 | 1320 | ||
1322 | 1321 | ||