提交 fef45902 编写于 作者: M Maciej W. Rozycki 提交者: Linus Torvalds

[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: NMaciej W. Rozycki <macro@linux-mips.org>
Cc: James Simmons <jsimmons@infradead.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a524d946
...@@ -71,9 +71,10 @@ static struct fb_ops tgafb_ops = { ...@@ -71,9 +71,10 @@ static struct fb_ops tgafb_ops = {
*/ */
static struct pci_device_id const tgafb_pci_table[] = { static struct pci_device_id const tgafb_pci_table[] = {
{ PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA, PCI_ANY_ID, PCI_ANY_ID, { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TGA) },
0, 0, 0 } { }
}; };
MODULE_DEVICE_TABLE(pci, tgafb_pci_table);
static struct pci_driver tgafb_driver = { static struct pci_driver tgafb_driver = {
.name = "tgafb", .name = "tgafb",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册