tty: remove DEFINE_PCI_DEVICE_TABLE macro
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Dec 2013 23:26:37 +0000 (08:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:09:07 +0000 (17:09 -0800)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rocket.c
drivers/tty/serial/pch_uart.c
drivers/tty/serial/rp2.c

index 354564ea47c504446ba5aeab1153d48edc4acc48..383c4c796637713e12bede50677803a0d639a855 100644 (file)
@@ -1744,7 +1744,7 @@ static void rp_flush_buffer(struct tty_struct *tty)
 
 #ifdef CONFIG_PCI
 
-static DEFINE_PCI_DEVICE_TABLE(rocket_pci_ids) = {
+static const struct pci_device_id rocket_pci_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_RP4QUAD) },
        { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_RP8OCTA) },
        { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_URP8OCTA) },
index 11c862c6bac822eb95f75c568586b218b19b6ca6..9cbd3acaf37fca13a55ea6b9a854e259790d1758 100644 (file)
@@ -1906,7 +1906,7 @@ static int pch_uart_pci_resume(struct pci_dev *pdev)
 #define pch_uart_pci_resume NULL
 #endif
 
-static DEFINE_PCI_DEVICE_TABLE(pch_uart_pci_id) = {
+static const struct pci_device_id pch_uart_pci_id[] = {
        {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8811),
         .driver_data = pch_et20t_uart0},
        {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8812),
index 328d6deb6b0899b490684b3735800970625cea85..056f91b3a4ca564d4a04d47183979014922f2cc3 100644 (file)
@@ -810,7 +810,7 @@ static void rp2_remove(struct pci_dev *pdev)
        rp2_remove_ports(card);
 }
 
-static DEFINE_PCI_DEVICE_TABLE(rp2_pci_tbl) = {
+static const struct pci_device_id rp2_pci_tbl[] = {
 
        /* RocketPort INFINITY cards */
 
This page took 0.036291 seconds and 5 git commands to generate.