mtd: nand: lpc32xx_slc: Remove redundant of_match_ptr
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Nov 13 13:59:03 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fea7b5697ba74102f905ecf318a34f2429071a0a
Commit: fea7b5697ba74102f905ecf318a34f2429071a0a
Parent: 6dcd592022678e44c6fc705ca6f287b4e7ee338f
Author: Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Mon Sep 30 15:10:23 2013 +0530
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Nov 6 23:32:45 2013 -0800
mtd: nand: lpc32xx_slc: Remove redundant of_match_ptr
The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/lpc32xx_slc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c
index 6d5f8c5..23e6974 100644
--- a/drivers/mtd/nand/lpc32xx_slc.c
+++ b/drivers/mtd/nand/lpc32xx_slc.c
@@ -1015,7 +1015,7 @@ static struct platform_driver lpc32xx_nand_driver = {
.driver = {
.name = LPC32XX_MODNAME,
.owner = THIS_MODULE,
- .of_match_table = of_match_ptr(lpc32xx_nand_match),
+ .of_match_table = lpc32xx_nand_match,
},
};
More information about the linux-mtd-cvs
mailing list