summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-07-07 10:21:15 +0800
committerMatthew Garrett <mjg@redhat.com>2011-08-05 14:46:14 -0400
commitb73210aec44ddf73ca856cbca2d25daeccf47025 (patch)
tree39fffa0948c494cd5bd6ca0f8001797c27ffb33c /drivers/platform
parentc8bb2ebd6267d6c1288201344d7e7ee987d74467 (diff)
downloadop-kernel-dev-b73210aec44ddf73ca856cbca2d25daeccf47025.zip
op-kernel-dev-b73210aec44ddf73ca856cbca2d25daeccf47025.tar.gz
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_rar_register.c4
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 bde47e9..c8a6aed 100644
--- a/drivers/platform/x86/intel_rar_register.c
+++ b/drivers/platform/x86/intel_rar_register.c
@@ -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",
OpenPOWER on IntegriCloud