[PATCH 6/9] mtd: pci: use DEFINE_PCI_DEVICE_TABLE macro

Jingoo Han jg1.han at samsung.com
Wed Nov 27 21:33:54 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/pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c
index 36da518..d6ffa04 100644
--- a/drivers/mtd/maps/pci.c
+++ b/drivers/mtd/maps/pci.c
@@ -229,7 +229,7 @@ static struct mtd_pci_info intel_dc21285_info = {
  * PCI device ID table
  */
 
-static struct pci_device_id mtd_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(mtd_pci_ids) = {
 	{
 		.vendor =	PCI_VENDOR_ID_INTEL,
 		.device =	0x530d,
-- 
1.7.10.4





More information about the linux-mtd mailing list