platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
authorAxel Lin <axel.lin@gmail.com>
Thu, 7 Jul 2011 02:21:15 +0000 (10:21 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 5 Aug 2011 18:46:14 +0000 (14:46 -0400)
And also remove unused variable 'my_id_table'.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_rar_register.c

index bde47e9080cd9a131dc76563e42d01e273bab990..c8a6aed452778d489a53bb9a60c2a9af2ec72470 100644 (file)
@@ -637,15 +637,13 @@ end_function:
        return error;
 }
 
-const struct pci_device_id rar_pci_id_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(rar_pci_id_tbl) = {
        { PCI_VDEVICE(INTEL, 0x4110) },
        { 0 }
 };
 
 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 */
 static struct pci_driver rar_pci_driver = {
        .name = "rar_register_driver",