Skip to contentSkip to conversation

gxfb: use PCI_DEVICE() for gxfb's pci device table

PATCH In review Andres Salomon 1 participant 1 message Feb 23, 2008 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 gxfb: use PCI_DEVICE() for gxfb's pci device table

Drop the class/class_mask stuff; it's unnecessary
as long as the vendor and device IDs match.

---
 drivers/video/geode/gxfb_core.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/video/geode/gxfb_core.c +1 -3
index 07ff4bc..08fa25e 100644
@@ -396,9 +396,7 @@ static void gxfb_remove(struct pci_dev *pdev)
 }
 
 static struct pci_device_id gxfb_id_table[] = {
-	{ PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_GX_VIDEO,
-	  PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16,
-	  0xff0000, 0 },
+	{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_GX_VIDEO) },
 	{ 0, }
 };
 
Signature · 1 line
1.5.3.7