mtd: atmel_nand: add MODULE_DEVICE_TABLE for nfc driver
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:02 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=81f29b475dae3ebd73a98cde29ef8f3c9670865c
Commit: 81f29b475dae3ebd73a98cde29ef8f3c9670865c
Parent: e9d8da807d818ce8e8399f528fd8efaac3eef36b
Author: Josh Wu <josh.wu at atmel.com>
AuthorDate: Wed Sep 18 11:31:20 2013 +0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Sun Oct 27 16:27:04 2013 -0700
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 <josh.wu at atmel.com>
Acked-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
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 72c2611..5a5d457 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 = {
More information about the linux-mtd-cvs
mailing list