mtd: nand: sh_flctl: Remove unneeded CONFIG_OF

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:04 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0d681560176ef94b6b2aaa39e3e935662cffc6e6
Commit:     0d681560176ef94b6b2aaa39e3e935662cffc6e6
Parent:     ec64d3bf5d41a5a30debe8f166bf33f149feb09d
Author:     Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
AuthorDate: Sat Dec 7 11:31:01 2013 -0300
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Fri Jan 3 11:22:24 2014 -0800

    mtd: nand: sh_flctl: Remove unneeded CONFIG_OF
    
    Since the of_mtd header provides dummy stubs for !CONFIG_OF, it's safe
    to remove the #ifdef CONFIG_OF. Build tested only.
    
    Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/sh_flctl.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index 50f1cb9..1940bd1 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1021,7 +1021,6 @@ static irqreturn_t flctl_handle_flste(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-#ifdef CONFIG_OF
 struct flctl_soc_config {
 	unsigned long flcmncr_val;
 	unsigned has_hwecc:1;
@@ -1080,12 +1079,6 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
 
 	return pdata;
 }
-#else /* CONFIG_OF */
-static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
-{
-	return NULL;
-}
-#endif /* CONFIG_OF */
 
 static int flctl_probe(struct platform_device *pdev)
 {



More information about the linux-mtd-cvs mailing list