Skip to contentSkip to conversation

platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE

PATCH Applied Axel Lin 2 participants 3 messages Jul 7, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE

And also remove unused variable 'my_id_table'.

---
 drivers/platform/x86/intel_rar_register.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/platform/x86/intel_rar_register.c +1 -3
index bde47e9..c8a6aed 100644
@@ -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",
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 2/2 platform-drivers-x86: intel_scu_ipc: convert to DEFINE_PCI_DEVICE_TABLE

---
 drivers/platform/x86/intel_scu_ipc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/intel_scu_ipc.c +1 -1
index 940accb..c866653 100644
@@ -725,7 +725,7 @@ static void ipc_remove(struct pci_dev *pdev)
 	intel_scu_devices_destroy();
 }
 
-static const struct pci_device_id pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(pci_ids) = {
 	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080e)},
 	{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x082a)},
 	{ 0,}
Signature · 1 line
1.7.4.1