mtd: denali_dt: Remove redundant use of of_match_ptr

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Apr 5 09:59:02 EDT 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ef54f87366fc207e5db006a720deb5cda4e9778f
Commit:     ef54f87366fc207e5db006a720deb5cda4e9778f
Parent:     2f2ff14c2760cd1db5dd05afddae9a5d9709047a
Author:     Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Mon Mar 18 15:11:14 2013 +0530
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Apr 5 14:04:34 2013 +0100

    mtd: denali_dt: Remove redundant use of of_match_ptr
    
    Since this driver is dt only and denali_nand_dt_ids is always
    compiled in, use of of_match_ptr() macro is not necessary.
    
    Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/denali_dt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/denali_dt.c b/drivers/mtd/nand/denali_dt.c
index 067a505..9253024 100644
--- a/drivers/mtd/nand/denali_dt.c
+++ b/drivers/mtd/nand/denali_dt.c
@@ -146,7 +146,7 @@ static struct platform_driver denali_dt_driver = {
 	.driver		= {
 		.name	= "denali-nand-dt",
 		.owner	= THIS_MODULE,
-		.of_match_table	= of_match_ptr(denali_nand_dt_ids),
+		.of_match_table	= denali_nand_dt_ids,
 	},
 };
 



More information about the linux-mtd-cvs mailing list