From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VlrQ6-00077D-8B for linux-mtd@lists.infradead.org; Thu, 28 Nov 2013 02:33:34 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MWY00C2XCFCGF80@mailout1.samsung.com> for linux-mtd@lists.infradead.org; Thu, 28 Nov 2013 11:33:12 +0900 (KST) From: Jingoo Han To: 'Brian Norris' References: <001e01ceebe1$f5adf370$e109da50$%han@samsung.com> In-reply-to: <001e01ceebe1$f5adf370$e109da50$%han@samsung.com> Subject: [PATCH 4/9] mtd: ichxrom: use DEFINE_PCI_DEVICE_TABLE macro Date: Thu, 28 Nov 2013 11:33:12 +0900 Message-id: <002101ceebe2$2ed880c0$8c898240$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-language: ko Cc: 'Artem Bityutskiy' , 'Jingoo Han' , 'David Woodhouse' , linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This macro is used to create a struct pci_device_id array. Signed-off-by: Jingoo Han --- drivers/mtd/maps/ichxrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/maps/ichxrom.c b/drivers/mtd/maps/ichxrom.c index c7478e1..8d2da98 100644 --- a/drivers/mtd/maps/ichxrom.c +++ b/drivers/mtd/maps/ichxrom.c @@ -321,7 +321,7 @@ static void ichxrom_remove_one(struct pci_dev *pdev) ichxrom_cleanup(window); } -static struct pci_device_id ichxrom_pci_tbl[] = { +static DEFINE_PCI_DEVICE_TABLE(ichxrom_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, @@ -349,7 +349,7 @@ static struct pci_driver ichxrom_driver = { static int __init init_ichxrom(void) { struct pci_dev *pdev; - struct pci_device_id *id; + const struct pci_device_id *id; pdev = NULL; for (id = ichxrom_pci_tbl; id->vendor; id++) { -- 1.7.10.4