[PATCH 8/9] mtd: cafe_nand: use DEFINE_PCI_DEVICE_TABLE macro
Jingoo Han
jg1.han at samsung.com
Wed Nov 27 21:34:32 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/nand/cafe_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
index c34985a..05313fd 100644
--- a/drivers/mtd/nand/cafe_nand.c
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -830,7 +830,7 @@ static void cafe_nand_remove(struct pci_dev *pdev)
kfree(mtd);
}
-static const struct pci_device_id cafe_nand_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(cafe_nand_tbl) = {
{ PCI_VENDOR_ID_MARVELL, PCI_DEVICE_ID_MARVELL_88ALP01_NAND,
PCI_ANY_ID, PCI_ANY_ID },
{ }
--
1.7.10.4
More information about the linux-mtd
mailing list