[PATCH 7/9] mtd: scb2_flash: use DEFINE_PCI_DEVICE_TABLE macro

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

diff --git a/drivers/mtd/maps/scb2_flash.c b/drivers/mtd/maps/scb2_flash.c
index 3051c4c..db25dd1 100644
--- a/drivers/mtd/maps/scb2_flash.c
+++ b/drivers/mtd/maps/scb2_flash.c
@@ -214,7 +214,7 @@ static void scb2_flash_remove(struct pci_dev *dev)
 		release_mem_region(SCB2_ADDR, SCB2_WINDOW);
 }
 
-static struct pci_device_id scb2_flash_pci_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(scb2_flash_pci_ids) = {
 	{
 	  .vendor = PCI_VENDOR_ID_SERVERWORKS,
 	  .device = PCI_DEVICE_ID_SERVERWORKS_CSB5,
-- 
1.7.10.4





More information about the linux-mtd mailing list