Thread (11 messages) 11 messages, 2 authors, 2013-11-28
STALE4582d

[PATCH 5/8] atm: iphase: use DEFINE_PCI_DEVICE_TABLE macro

From: Jingoo Han <hidden>
Date: 2013-11-28 03:41:09
Subsystem: atm, the rest · Maintainers: Chas Williams, Linus Torvalds

This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <redacted>
---
 drivers/atm/iphase.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index 4217f29..87b0b54 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -3258,7 +3258,7 @@ static void ia_remove_one(struct pci_dev *pdev)
       	kfree(iadev);
 }
 
-static struct pci_device_id ia_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(ia_pci_tbl) = {
 	{ PCI_VENDOR_ID_IPHASE, 0x0008, PCI_ANY_ID, PCI_ANY_ID, },
 	{ PCI_VENDOR_ID_IPHASE, 0x0009, PCI_ANY_ID, PCI_ANY_ID, },
 	{ 0,}
-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help