diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-27 03:17:46 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2012-03-03 08:43:37 -0500 |
commit | 2b2c5d8c1dff8ed42d6d841f56428c0ce2bd71b5 (patch) | |
tree | b3ba3e4f40402ad9c3f43eb9a22b2b1b59e31365 /drivers/pcmcia | |
parent | 5d95f8e2dd263f3e05ae4bf9a3309552363e13af (diff) |
pcmcia: Convert to DEFINE_PCI_DEVICE_TABLE
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
tables. Also convert to use PCI_DEVICE macro for better readablity.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/bcm63xx_pcmcia.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/i82092.c | 11 | ||||
-rw-r--r-- | drivers/pcmcia/pd6729.c | 9 | ||||
-rw-r--r-- | drivers/pcmcia/vrc4173_cardu.c | 7 | ||||
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 2 |
5 files changed, 9 insertions, 22 deletions
diff --git a/drivers/pcmcia/bcm63xx_pcmcia.c b/drivers/pcmcia/bcm63xx_pcmcia.c index 693577e0fefc..c2e997a570bf 100644 --- a/drivers/pcmcia/bcm63xx_pcmcia.c +++ b/drivers/pcmcia/bcm63xx_pcmcia.c | |||
@@ -475,7 +475,7 @@ static void __devexit bcm63xx_cb_exit(struct pci_dev *dev) | |||
475 | bcm63xx_cb_dev = NULL; | 475 | bcm63xx_cb_dev = NULL; |
476 | } | 476 | } |
477 | 477 | ||
478 | static struct pci_device_id bcm63xx_cb_table[] = { | 478 | static DEFINE_PCI_DEVICE_TABLE(bcm63xx_cb_table) = { |
479 | { | 479 | { |
480 | .vendor = PCI_VENDOR_ID_BROADCOM, | 480 | .vendor = PCI_VENDOR_ID_BROADCOM, |
481 | .device = BCM6348_CPU_ID, | 481 | .device = BCM6348_CPU_ID, |
diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c index 3e447d0387b7..17035236ad2e 100644 --- a/drivers/pcmcia/i82092.c +++ b/drivers/pcmcia/i82092.c | |||
@@ -26,14 +26,9 @@ | |||
26 | MODULE_LICENSE("GPL"); | 26 | MODULE_LICENSE("GPL"); |
27 | 27 | ||
28 | /* PCI core routines */ | 28 | /* PCI core routines */ |
29 | static struct pci_device_id i82092aa_pci_ids[] = { | 29 | static DEFINE_PCI_DEVICE_TABLE(i82092aa_pci_ids) = { |
30 | { | 30 | { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82092AA_0) }, |
31 | .vendor = PCI_VENDOR_ID_INTEL, | 31 | { } |
32 | .device = PCI_DEVICE_ID_INTEL_82092AA_0, | ||
33 | .subvendor = PCI_ANY_ID, | ||
34 | .subdevice = PCI_ANY_ID, | ||
35 | }, | ||
36 | {} | ||
37 | }; | 32 | }; |
38 | MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids); | 33 | MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids); |
39 | 34 | ||
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c index 96c72e90b79c..5928247a4af0 100644 --- a/drivers/pcmcia/pd6729.c +++ b/drivers/pcmcia/pd6729.c | |||
@@ -763,13 +763,8 @@ static void __devexit pd6729_pci_remove(struct pci_dev *dev) | |||
763 | kfree(socket); | 763 | kfree(socket); |
764 | } | 764 | } |
765 | 765 | ||
766 | static struct pci_device_id pd6729_pci_ids[] = { | 766 | static DEFINE_PCI_DEVICE_TABLE(pd6729_pci_ids) = { |
767 | { | 767 | { PCI_DEVICE(PCI_VENDOR_ID_CIRRUS, PCI_DEVICE_ID_CIRRUS_6729) }, |
768 | .vendor = PCI_VENDOR_ID_CIRRUS, | ||
769 | .device = PCI_DEVICE_ID_CIRRUS_6729, | ||
770 | .subvendor = PCI_ANY_ID, | ||
771 | .subdevice = PCI_ANY_ID, | ||
772 | }, | ||
773 | { } | 768 | { } |
774 | }; | 769 | }; |
775 | MODULE_DEVICE_TABLE(pci, pd6729_pci_ids); | 770 | MODULE_DEVICE_TABLE(pci, pd6729_pci_ids); |
diff --git a/drivers/pcmcia/vrc4173_cardu.c b/drivers/pcmcia/vrc4173_cardu.c index c6d36b3a6ce8..cd0a315d922b 100644 --- a/drivers/pcmcia/vrc4173_cardu.c +++ b/drivers/pcmcia/vrc4173_cardu.c | |||
@@ -563,11 +563,8 @@ static int __devinit vrc4173_cardu_setup(char *options) | |||
563 | 563 | ||
564 | __setup("vrc4173_cardu=", vrc4173_cardu_setup); | 564 | __setup("vrc4173_cardu=", vrc4173_cardu_setup); |
565 | 565 | ||
566 | static struct pci_device_id vrc4173_cardu_id_table[] __devinitdata = { | 566 | static DEFINE_PCI_DEVICE_TABLE(vrc4173_cardu_id_table) = { |
567 | { .vendor = PCI_VENDOR_ID_NEC, | 567 | { PCI_DEVICE(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_NAPCCARD) }, |
568 | .device = PCI_DEVICE_ID_NEC_NAPCCARD, | ||
569 | .subvendor = PCI_ANY_ID, | ||
570 | .subdevice = PCI_ANY_ID, }, | ||
571 | {0, } | 568 | {0, } |
572 | }; | 569 | }; |
573 | 570 | ||
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 849c0c11d2af..d07f9ac8c41d 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -1352,7 +1352,7 @@ static const struct dev_pm_ops yenta_pm_ops = { | |||
1352 | .driver_data = CARDBUS_TYPE_##type, \ | 1352 | .driver_data = CARDBUS_TYPE_##type, \ |
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | static struct pci_device_id yenta_table[] = { | 1355 | static DEFINE_PCI_DEVICE_TABLE(yenta_table) = { |
1356 | CB_ID(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_1031, TI), | 1356 | CB_ID(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_1031, TI), |
1357 | 1357 | ||
1358 | /* | 1358 | /* |