Commit b73210ae authored by Axel Lin's avatar Axel Lin Committed by Matthew Garrett

platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE

And also remove unused variable 'my_id_table'.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent c8bb2ebd
...@@ -637,15 +637,13 @@ static int rar_probe(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -637,15 +637,13 @@ static int rar_probe(struct pci_dev *dev, const struct pci_device_id *id)
return error; return error;
} }
const struct pci_device_id rar_pci_id_tbl[] = { static DEFINE_PCI_DEVICE_TABLE(rar_pci_id_tbl) = {
{ PCI_VDEVICE(INTEL, 0x4110) }, { PCI_VDEVICE(INTEL, 0x4110) },
{ 0 } { 0 }
}; };
MODULE_DEVICE_TABLE(pci, rar_pci_id_tbl); MODULE_DEVICE_TABLE(pci, rar_pci_id_tbl);
const struct pci_device_id *my_id_table = rar_pci_id_tbl;
/* field for registering driver to PCI device */ /* field for registering driver to PCI device */
static struct pci_driver rar_pci_driver = { static struct pci_driver rar_pci_driver = {
.name = "rar_register_driver", .name = "rar_register_driver",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment