cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sun, 19 Jul 2015 17:23:52 +0000 (22:53 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 22 Aug 2015 11:21:39 +0000 (21:21 +1000)
commitf47f966fbe0aaff4ebbdb83d95acdfa5d3c20477
treeaf8fa0ccc25f904f0f48ff1f25cda3196d0f2cd0
parent5d53be7d8c7ccf8eec1ce66c6b3573c01d16b755
cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE

Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use
struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with
the goal of getting rid of this macro completely.

The Coccinelle semantic patch that performs this transformation
is as follows:

@@
identifier a;
declarer name DEFINE_PCI_DEVICE_TABLE;
initializer i;
@@
- DEFINE_PCI_DEVICE_TABLE(a)
+ const struct pci_device_id a[]
= i;

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Acked-by: Michael Neuling <mikey@neuling.org>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/pci.c