diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-06 22:21:15 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 14:46:14 -0400 |
commit | b73210aec44ddf73ca856cbca2d25daeccf47025 (patch) | |
tree | 39fffa0948c494cd5bd6ca0f8001797c27ffb33c | |
parent | c8bb2ebd6267d6c1288201344d7e7ee987d74467 (diff) |
platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
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>
-rw-r--r-- | drivers/platform/x86/intel_rar_register.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_rar_register.c b/drivers/platform/x86/intel_rar_register.c index bde47e9080cd..c8a6aed45277 100644 --- a/drivers/platform/x86/intel_rar_register.c +++ b/drivers/platform/x86/intel_rar_register.c | |||
@@ -637,15 +637,13 @@ end_function: | |||
637 | return error; | 637 | return error; |
638 | } | 638 | } |
639 | 639 | ||
640 | const struct pci_device_id rar_pci_id_tbl[] = { | 640 | static DEFINE_PCI_DEVICE_TABLE(rar_pci_id_tbl) = { |
641 | { PCI_VDEVICE(INTEL, 0x4110) }, | 641 | { PCI_VDEVICE(INTEL, 0x4110) }, |
642 | { 0 } | 642 | { 0 } |
643 | }; | 643 | }; |
644 | 644 | ||
645 | MODULE_DEVICE_TABLE(pci, rar_pci_id_tbl); | 645 | MODULE_DEVICE_TABLE(pci, rar_pci_id_tbl); |
646 | 646 | ||
647 | const struct pci_device_id *my_id_table = rar_pci_id_tbl; | ||
648 | |||
649 | /* field for registering driver to PCI device */ | 647 | /* field for registering driver to PCI device */ |
650 | static struct pci_driver rar_pci_driver = { | 648 | static struct pci_driver rar_pci_driver = { |
651 | .name = "rar_register_driver", | 649 | .name = "rar_register_driver", |