spi: Convert to DEFINE_PCI_DEVICE_TABLE
authorAxel Lin <axel.lin@gmail.com>
Thu, 15 Dec 2011 00:11:25 +0000 (08:11 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Mar 2012 22:33:15 +0000 (15:33 -0700)
Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
tables.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-dw-pci.c
drivers/spi/spi-pxa2xx-pci.c
drivers/spi/spi-topcliff-pch.c

index f64250ea161100be2d9ddc2708ee95e7a684d194..14f7cc9523f06e56cfd2a3d3d9b03f8fe9df1a00 100644 (file)
@@ -149,7 +149,7 @@ static int spi_resume(struct pci_dev *pdev)
 #define spi_resume     NULL
 #endif
 
-static const struct pci_device_id pci_ids[] __devinitdata = {
+static DEFINE_PCI_DEVICE_TABLE(pci_ids) = {
        /* Intel MID platform SPI controller 0 */
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0800) },
        {},
index 8caa07d58e69cc4f9097ae33fe10a6b3ff2a26e8..3fb44afe27b48572ecbc91e219a30d56c60d8baa 100644 (file)
@@ -151,7 +151,7 @@ static void __devexit ce4100_spi_remove(struct pci_dev *dev)
        kfree(spi_info);
 }
 
-static struct pci_device_id ce4100_spi_devices[] __devinitdata = {
+static DEFINE_PCI_DEVICE_TABLE(ce4100_spi_devices) = {
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2e6a) },
        { },
 };
index 88e6b3fd1f12b74493288192a90bd9530e4cc03f..4a5fafb8d574e0e8a5c9a3168bbd9d7c0bb1b1a0 100644 (file)
@@ -216,7 +216,7 @@ struct pch_pd_dev_save {
        struct pch_spi_board_data *board_dat;
 };
 
-static struct pci_device_id pch_spi_pcidev_id[] = {
+static DEFINE_PCI_DEVICE_TABLE(pch_spi_pcidev_id) = {
        { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_GE_SPI),    1, },
        { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7213_SPI), 2, },
        { PCI_VDEVICE(ROHM, PCI_DEVICE_ID_ML7223_SPI), 1, },