diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-12-07 09:31:01 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 14:22:24 -0500 |
commit | 0d681560176ef94b6b2aaa39e3e935662cffc6e6 (patch) | |
tree | 2ebed1aac180a98bd48f28ceda7da196e1d45b04 | |
parent | ec64d3bf5d41a5a30debe8f166bf33f149feb09d (diff) |
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@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index 50f1cb93324f..1940bd127d2d 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) | |||
1021 | return IRQ_HANDLED; | 1021 | return IRQ_HANDLED; |
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | #ifdef CONFIG_OF | ||
1025 | struct flctl_soc_config { | 1024 | struct flctl_soc_config { |
1026 | unsigned long flcmncr_val; | 1025 | unsigned long flcmncr_val; |
1027 | unsigned has_hwecc:1; | 1026 | unsigned has_hwecc:1; |
@@ -1080,12 +1079,6 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) | |||
1080 | 1079 | ||
1081 | return pdata; | 1080 | return pdata; |
1082 | } | 1081 | } |
1083 | #else /* CONFIG_OF */ | ||
1084 | static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) | ||
1085 | { | ||
1086 | return NULL; | ||
1087 | } | ||
1088 | #endif /* CONFIG_OF */ | ||
1089 | 1082 | ||
1090 | static int flctl_probe(struct platform_device *pdev) | 1083 | static int flctl_probe(struct platform_device *pdev) |
1091 | { | 1084 | { |