Commit 14f4a8838acac0fe6bf710ec08fc4cce57c0011b

Authored by Jingoo Han
Committed by Linus Walleij
1 parent 0299b77b44

gpio: remove DEFINE_PCI_DEVICE_TABLE macro

Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Showing 6 changed files with 6 additions and 6 deletions Side-by-side Diff

drivers/gpio/gpio-amd8111.c
... ... @@ -60,7 +60,7 @@
60 60 * register a pci_driver, because someone else might one day
61 61 * want to register another driver on the same PCI id.
62 62 */
63   -static DEFINE_PCI_DEVICE_TABLE(pci_tbl) = {
  63 +static const struct pci_device_id pci_tbl[] = {
64 64 { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS), 0 },
65 65 { 0, }, /* terminate list */
66 66 };
drivers/gpio/gpio-bt8xx.c
... ... @@ -308,7 +308,7 @@
308 308 #define bt8xxgpio_resume NULL
309 309 #endif /* CONFIG_PM */
310 310  
311   -static DEFINE_PCI_DEVICE_TABLE(bt8xxgpio_pci_tbl) = {
  311 +static const struct pci_device_id bt8xxgpio_pci_tbl[] = {
312 312 { PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT848) },
313 313 { PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT849) },
314 314 { PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT878) },
drivers/gpio/gpio-intel-mid.c
... ... @@ -275,7 +275,7 @@
275 275 .chip_irq_type = INTEL_MID_IRQ_TYPE_EDGE,
276 276 };
277 277  
278   -static DEFINE_PCI_DEVICE_TABLE(intel_gpio_ids) = {
  278 +static const struct pci_device_id intel_gpio_ids[] = {
279 279 {
280 280 /* Lincroft */
281 281 PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080f),
drivers/gpio/gpio-ml-ioh.c
... ... @@ -596,7 +596,7 @@
596 596 #define ioh_gpio_resume NULL
597 597 #endif
598 598  
599   -static DEFINE_PCI_DEVICE_TABLE(ioh_gpio_pcidev_id) = {
  599 +static const struct pci_device_id ioh_gpio_pcidev_id[] = {
600 600 { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x802E) },
601 601 { 0, }
602 602 };
drivers/gpio/gpio-pch.c
... ... @@ -518,7 +518,7 @@
518 518 #endif
519 519  
520 520 #define PCI_VENDOR_ID_ROHM 0x10DB
521   -static DEFINE_PCI_DEVICE_TABLE(pch_gpio_pcidev_id) = {
  521 +static const struct pci_device_id pch_gpio_pcidev_id[] = {
522 522 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8803) },
523 523 { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x8014) },
524 524 { PCI_DEVICE(PCI_VENDOR_ID_ROHM, 0x8043) },
drivers/gpio/gpio-sodaville.c
... ... @@ -270,7 +270,7 @@
270 270 kfree(sd);
271 271 }
272 272  
273   -static DEFINE_PCI_DEVICE_TABLE(sdv_gpio_pci_ids) = {
  273 +static const struct pci_device_id sdv_gpio_pci_ids[] = {
274 274 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_SDV_GPIO) },
275 275 { 0, },
276 276 };