gpio: Use DEFINE_PCI_DEVICE_TABLE macro
authorAxel Lin <axel.lin@gmail.com>
Sun, 2 Sep 2012 00:04:04 +0000 (08:04 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Sep 2012 07:23:07 +0000 (09:23 +0200)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-bt8xx.c
drivers/gpio/gpio-sodaville.c

index e4cc7eb69bb2488e36c3db104feab9858fa6a764..aba97abda77cff7856a41aef420aa5735aacb4e3 100644 (file)
@@ -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) },
index 9d9891f7a607f44c69d5b2598461ba96efb3a616..e25f73130b40b6676be057929945a0d3a7900489 100644 (file)
@@ -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, },
 };