[PATCH 3/9] mtd: esb2rom: use DEFINE_PCI_DEVICE_TABLE macro
Jingoo Han
jg1.han at samsung.com
Wed Nov 27 21:32:52 EST 2013
This macro is used to create a struct pci_device_id array.
Signed-off-by: Jingoo Han <jg1.han at samsung.com>
---
drivers/mtd/maps/esb2rom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/esb2rom.c b/drivers/mtd/maps/esb2rom.c
index f784cf0..d44b92f 100644
--- a/drivers/mtd/maps/esb2rom.c
+++ b/drivers/mtd/maps/esb2rom.c
@@ -384,7 +384,7 @@ static void esb2rom_remove_one(struct pci_dev *pdev)
esb2rom_cleanup(window);
}
-static struct pci_device_id esb2rom_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(esb2rom_pci_tbl) = {
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0,
PCI_ANY_ID, PCI_ANY_ID, },
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0,
@@ -414,7 +414,7 @@ static struct pci_driver esb2rom_driver = {
static int __init init_esb2rom(void)
{
struct pci_dev *pdev;
- struct pci_device_id *id;
+ const struct pci_device_id *id;
int retVal;
pdev = NULL;
--
1.7.10.4
More information about the linux-mtd
mailing list