提交 311df74a 编写于 作者: J Jingoo Han 提交者: Greg Kroah-Hartman

tty: remove DEFINE_PCI_DEVICE_TABLE macro

Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6b471a98
...@@ -1744,7 +1744,7 @@ static void rp_flush_buffer(struct tty_struct *tty) ...@@ -1744,7 +1744,7 @@ static void rp_flush_buffer(struct tty_struct *tty)
#ifdef CONFIG_PCI #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_RP4QUAD) },
{ PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_RP8OCTA) }, { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_RP8OCTA) },
{ PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_URP8OCTA) }, { PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_DEVICE_ID_URP8OCTA) },
......
...@@ -1906,7 +1906,7 @@ static int pch_uart_pci_resume(struct pci_dev *pdev) ...@@ -1906,7 +1906,7 @@ static int pch_uart_pci_resume(struct pci_dev *pdev)
#define pch_uart_pci_resume NULL #define pch_uart_pci_resume NULL
#endif #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), {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8811),
.driver_data = pch_et20t_uart0}, .driver_data = pch_et20t_uart0},
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8812), {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x8812),
......
...@@ -810,7 +810,7 @@ static void rp2_remove(struct pci_dev *pdev) ...@@ -810,7 +810,7 @@ static void rp2_remove(struct pci_dev *pdev)
rp2_remove_ports(card); rp2_remove_ports(card);
} }
static DEFINE_PCI_DEVICE_TABLE(rp2_pci_tbl) = { static const struct pci_device_id rp2_pci_tbl[] = {
/* RocketPort INFINITY cards */ /* RocketPort INFINITY cards */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册