* [PATCH 1/2] platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
@ 2011-07-07 2:21 Axel Lin
2011-07-07 2:22 ` [PATCH 2/2] platform-drivers-x86: intel_scu_ipc: " Axel Lin
2011-07-07 10:00 ` [PATCH 1/2] platform-drivers-x86: intel_rar_register: " Alan Cox
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2011-07-07 2:21 UTC (permalink / raw)
To: linux-kernel; +Cc: Alan Cox, Matthew Garrett, platform-driver-x86
And also remove unused variable 'my_id_table'.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
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 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",
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] platform-drivers-x86: intel_scu_ipc: convert to DEFINE_PCI_DEVICE_TABLE
2011-07-07 2:21 [PATCH 1/2] platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE Axel Lin
@ 2011-07-07 2:22 ` Axel Lin
2011-07-07 10:00 ` [PATCH 1/2] platform-drivers-x86: intel_rar_register: " Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Axel Lin @ 2011-07-07 2:22 UTC (permalink / raw)
To: linux-kernel; +Cc: Sreedhara DS, Matthew Garrett, platform-driver-x86
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/platform/x86/intel_scu_ipc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c
index 940accb..c866653 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -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,}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
2011-07-07 2:21 [PATCH 1/2] platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE Axel Lin
2011-07-07 2:22 ` [PATCH 2/2] platform-drivers-x86: intel_scu_ipc: " Axel Lin
@ 2011-07-07 10:00 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2011-07-07 10:00 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, Matthew Garrett, platform-driver-x86
On Thu, 07 Jul 2011 10:21:15 +0800
Axel Lin <axel.lin@gmail.com> wrote:
> And also remove unused variable 'my_id_table'.
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Applied to mid tree looks fine to me
Signed-off-by: Alan Cox <alan@linux.intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-07 9:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07 2:21 [PATCH 1/2] platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE Axel Lin
2011-07-07 2:22 ` [PATCH 2/2] platform-drivers-x86: intel_scu_ipc: " Axel Lin
2011-07-07 10:00 ` [PATCH 1/2] platform-drivers-x86: intel_rar_register: " Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).