Skip to contentSkip to conversation

video skeletonfb: use DEFINE_PCI_DEVICE_TABLE()

PATCH New Németh Márton 1 participant 1 message Jan 10, 2010 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video skeletonfb: use DEFINE_PCI_DEVICE_TABLE()

From: Márton Németh <[email protected]>

Use DEFINE_PCI_DEVICE_TABLE() when declaring the PCI device table as suggested in Documentation/PCI/pci.txt .

---

drivers/video/skeletonfb.c renamed from drivers/video/skeletonfb.c.orig +1 -1
@@ -887,7 +887,7 @@ static int xxxfb_resume(struct pci_dev *
 #define xxxfb_resume NULL
 #endif /* CONFIG_PM */
 
-static struct pci_device_id xxxfb_id_table[] = {
+static DEFINE_PCI_DEVICE_TABLE(xxxfb_id_table) = {
 	{ PCI_VENDOR_ID_XXX, PCI_DEVICE_ID_XXX,
 	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
 	  PCI_CLASS_MASK, 0 },