Skip to contentSkip to conversation

gpio: Use DEFINE_PCI_DEVICE_TABLE macro

PATCH Applied Axel Lin 2 participants 2 messages Sep 2, 2012 – Sep 4, 2012

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: Use DEFINE_PCI_DEVICE_TABLE macro

---
 drivers/gpio/gpio-bt8xx.c     |    2 +-
 drivers/gpio/gpio-sodaville.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/gpio-bt8xx.c +1 -1
index 92d555d..7d9d7cb 100644
@@ -310,7 +310,7 @@ static int bt8xxgpio_resume(struct pci_dev *pdev)
 #define bt8xxgpio_resume NULL
 #endif /* CONFIG_PM */
 
-static struct pci_device_id bt8xxgpio_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(bt8xxgpio_pci_tbl) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT848) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT849) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_BROOKTREE, PCI_DEVICE_ID_BT878) },
drivers/gpio/gpio-sodaville.c +1 -1
index 9d9891f..e25f731 100644
@@ -270,7 +270,7 @@ static void sdv_gpio_remove(struct pci_dev *pdev)
 	kfree(sd);
 }
 
-static struct pci_device_id sdv_gpio_pci_ids[] __devinitdata = {
+static DEFINE_PCI_DEVICE_TABLE(sdv_gpio_pci_ids) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_SDV_GPIO) },
 	{ 0, },
 };
Signature · 1 line
1.7.9.5