From: Maciej W. Rozycki Date: Mon, 12 Feb 2007 08:54:58 +0000 (-0800) Subject: [PATCH] tgafb: Fix the PCI ID table X-Git-Tag: v2.6.21-rc1~274^2~39 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fef459028bd842dde21bf55f83d6399b963f9911;p=linux-2.6-omap-h63xx.git [PATCH] tgafb: Fix the PCI ID table The end marker is missing from the driver's PCI ID table. This set of changes adds the marker, switches to using PCI_DEVICE() and records the table for the use in a module. Signed-off-by: Maciej W. Rozycki Cc: James Simmons Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c index 781ca7f77c0..b604859b4dd 100644 --- a/drivers/video/tgafb.c +++ b/drivers/video/tgafb.c @@ -71,9 +71,10 @@ static struct fb_ops tgafb_ops = { */ static struct pci_device_id const tgafb_pci_table[] = { - { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA, PCI_ANY_ID, PCI_ANY_ID, - 0, 0, 0 } + { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA) }, + { } }; +MODULE_DEVICE_TABLE(pci, tgafb_pci_table); static struct pci_driver tgafb_driver = { .name = "tgafb",