From 81f29b475dae3ebd73a98cde29ef8f3c9670865c Mon Sep 17 00:00:00 2001 From: Josh Wu Date: Wed, 18 Sep 2013 11:31:20 +0800 Subject: [PATCH] mtd: atmel_nand: add MODULE_DEVICE_TABLE for nfc driver This patch also add a const keyword for the of_device_id of nfc. Signed-off-by: Josh Wu Acked-by: Ezequiel Garcia Signed-off-by: Brian Norris --- drivers/mtd/nand/atmel_nand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 72c26112df85..5a5d4572585c 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -2244,10 +2244,11 @@ static int atmel_nand_nfc_probe(struct platform_device *pdev) return 0; } -static struct of_device_id atmel_nand_nfc_match[] = { +static const struct of_device_id atmel_nand_nfc_match[] = { { .compatible = "atmel,sama5d3-nfc" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, atmel_nand_nfc_match); static struct platform_driver atmel_nand_nfc_driver = { .driver = { -- 2.20.1