diff options
author | Joe Perches <joe@perches.com> | 2015-02-10 16:19:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-11 17:38:29 -0500 |
commit | 673e2baaa6d986e2fcd9c867661d8113f6c7dc7b (patch) | |
tree | c95761029876a8f1bfe20b2fda8fc1cc5de72d3c | |
parent | f7219b527b5710ae0c4add8faa4d0ea529722cb5 (diff) |
treewide: Remove unnecessary SSB_DEVTABLE_END macro
Use the normal {} instead of a macro to terminate an array.
Remove the macro too.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/b44.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43/main.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 2 | ||||
-rw-r--r-- | drivers/ssb/driver_gige.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ssb-hcd.c | 2 | ||||
-rw-r--r-- | include/linux/mod_devicetable.h | 2 |
6 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c index d86d6baf9681..bd5916a60cb5 100644 --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c | |||
@@ -121,7 +121,7 @@ static struct pci_driver b44_pci_driver = { | |||
121 | 121 | ||
122 | static const struct ssb_device_id b44_ssb_tbl[] = { | 122 | static const struct ssb_device_id b44_ssb_tbl[] = { |
123 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_ETHERNET, SSB_ANY_REV), | 123 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_ETHERNET, SSB_ANY_REV), |
124 | SSB_DEVTABLE_END | 124 | {}, |
125 | }; | 125 | }; |
126 | MODULE_DEVICE_TABLE(ssb, b44_ssb_tbl); | 126 | MODULE_DEVICE_TABLE(ssb, b44_ssb_tbl); |
127 | 127 | ||
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 6acb2b51ab8f..ccbdb05b28cd 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -144,7 +144,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = { | |||
144 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13), | 144 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13), |
145 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15), | 145 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15), |
146 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16), | 146 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16), |
147 | SSB_DEVTABLE_END | 147 | {}, |
148 | }; | 148 | }; |
149 | MODULE_DEVICE_TABLE(ssb, b43_ssb_tbl); | 149 | MODULE_DEVICE_TABLE(ssb, b43_ssb_tbl); |
150 | #endif | 150 | #endif |
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 1aec2146a2bf..4e58c0069830 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -86,7 +86,7 @@ MODULE_PARM_DESC(fwpostfix, "Postfix for the firmware files to load."); | |||
86 | static const struct ssb_device_id b43legacy_ssb_tbl[] = { | 86 | static const struct ssb_device_id b43legacy_ssb_tbl[] = { |
87 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 2), | 87 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 2), |
88 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 4), | 88 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 4), |
89 | SSB_DEVTABLE_END | 89 | {}, |
90 | }; | 90 | }; |
91 | MODULE_DEVICE_TABLE(ssb, b43legacy_ssb_tbl); | 91 | MODULE_DEVICE_TABLE(ssb, b43legacy_ssb_tbl); |
92 | 92 | ||
diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige.c index 21f71a1581fa..e9734051e3c4 100644 --- a/drivers/ssb/driver_gige.c +++ b/drivers/ssb/driver_gige.c | |||
@@ -24,7 +24,7 @@ MODULE_LICENSE("GPL"); | |||
24 | 24 | ||
25 | static const struct ssb_device_id ssb_gige_tbl[] = { | 25 | static const struct ssb_device_id ssb_gige_tbl[] = { |
26 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_ETHERNET_GBIT, SSB_ANY_REV), | 26 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_ETHERNET_GBIT, SSB_ANY_REV), |
27 | SSB_DEVTABLE_END | 27 | {}, |
28 | }; | 28 | }; |
29 | /* MODULE_DEVICE_TABLE(ssb, ssb_gige_tbl); */ | 29 | /* MODULE_DEVICE_TABLE(ssb, ssb_gige_tbl); */ |
30 | 30 | ||
diff --git a/drivers/usb/host/ssb-hcd.c b/drivers/usb/host/ssb-hcd.c index 0196f766df73..ffc32f4b1b1b 100644 --- a/drivers/usb/host/ssb-hcd.c +++ b/drivers/usb/host/ssb-hcd.c | |||
@@ -251,7 +251,7 @@ static const struct ssb_device_id ssb_hcd_table[] = { | |||
251 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOSTDEV, SSB_ANY_REV), | 251 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOSTDEV, SSB_ANY_REV), |
252 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOST, SSB_ANY_REV), | 252 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB11_HOST, SSB_ANY_REV), |
253 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB20_HOST, SSB_ANY_REV), | 253 | SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_USB20_HOST, SSB_ANY_REV), |
254 | SSB_DEVTABLE_END | 254 | {}, |
255 | }; | 255 | }; |
256 | MODULE_DEVICE_TABLE(ssb, ssb_hcd_table); | 256 | MODULE_DEVICE_TABLE(ssb, ssb_hcd_table); |
257 | 257 | ||
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 6711d57f9c05..2bb97175b6cc 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h | |||
@@ -365,8 +365,6 @@ struct ssb_device_id { | |||
365 | } __attribute__((packed, aligned(2))); | 365 | } __attribute__((packed, aligned(2))); |
366 | #define SSB_DEVICE(_vendor, _coreid, _revision) \ | 366 | #define SSB_DEVICE(_vendor, _coreid, _revision) \ |
367 | { .vendor = _vendor, .coreid = _coreid, .revision = _revision, } | 367 | { .vendor = _vendor, .coreid = _coreid, .revision = _revision, } |
368 | #define SSB_DEVTABLE_END \ | ||
369 | { 0, }, | ||
370 | 368 | ||
371 | #define SSB_ANY_VENDOR 0xFFFF | 369 | #define SSB_ANY_VENDOR 0xFFFF |
372 | #define SSB_ANY_ID 0xFFFF | 370 | #define SSB_ANY_ID 0xFFFF |