Skip to contentSkip to conversation

staging: xgifb: use DEFINE_PCI_DEVICE_TABLE() macro

PATCH New Javier Martinez Canillas 1 participant 1 message Aug 7, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: xgifb: use DEFINE_PCI_DEVICE_TABLE() macro

Use DEFINE_PCI_DEVICE_TABLE() to make xgifb_pci_table const and marked as __devinitconst

---
 drivers/staging/xgifb/XGI_main.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/staging/xgifb/XGI_main.h +1 -2
index fd1152e..06f62ee 100644
@@ -46,8 +46,7 @@
 #define XGI_IOTYPE2 __iomem
 #define XGIINITSTATIC static
 
-static struct pci_device_id __devinitdata xgifb_pci_table[] = {
-
+static DEFINE_PCI_DEVICE_TABLE(xgifb_pci_table) = {
 	{ PCI_VENDOR_ID_XG, PCI_DEVICE_ID_XG_20, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
 	{ PCI_VENDOR_ID_XG, PCI_DEVICE_ID_XG_27, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
 	{ PCI_VENDOR_ID_XG, PCI_DEVICE_ID_XG_40, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 2},
Signature · 1 line
1.7.0.4