Skip to contentSkip to conversation

video: nvidiafb: use DEFINE_PCI_DEVICE_TABLE macro

PATCH In review Jingoo Han 1 participant 1 message Nov 28, 2013 Framebuffer layer

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 17/28 video: nvidiafb: use DEFINE_PCI_DEVICE_TABLE macro

This macro is used to create a struct pci_device_id array.

---
 drivers/video/nvidia/nvidia.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/nvidia/nvidia.c +1 -1
index ff22871..2ed0184 100644
@@ -62,7 +62,7 @@
 /* HW cursor parameters */
 #define MAX_CURS		32
 
-static struct pci_device_id nvidiafb_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(nvidiafb_pci_tbl) = {
 	{PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
 	 PCI_BASE_CLASS_DISPLAY << 16, 0xff0000, 0},
 	{ 0, }
Signature · 1 line
1.7.10.4