aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-29 19:19:09 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-12-04 21:59:59 +0900
commit57f9bb9404e0578b4701ff900fdfa884d84c74b0 (patch)
tree41c1f8c5e95c6769d4fe6107300c21ac0f923335
parent1a7e176d27eb54cf75b2c54dfe1a351cc434d1d5 (diff)
downloadu-boot-57f9bb9404e0578b4701ff900fdfa884d84c74b0.zip
u-boot-57f9bb9404e0578b4701ff900fdfa884d84c74b0.tar.gz
u-boot-57f9bb9404e0578b4701ff900fdfa884d84c74b0.tar.bz2
mtd: nand: denali: remove ad-hoc board_nand_init() entry
This driver is highly dependent on the configuration from denali_dt.c Please enable CONFIG_NAND_DENALI_DT if you use this driver. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--drivers/mtd/nand/denali.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 7a87adc..8ff2d09 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1366,29 +1366,3 @@ free_buf:
return ret;
}
-
-#ifndef CONFIG_NAND_DENALI_DT
-static int __board_nand_init(void)
-{
- struct denali_nand_info *denali;
-
- denali = kzalloc(sizeof(*denali), GFP_KERNEL);
- if (!denali)
- return -ENOMEM;
-
- /*
- * In the future, these base addresses should be taken from
- * Device Tree or platform data.
- */
- denali->reg = (void __iomem *)CONFIG_SYS_NAND_REGS_BASE;
- denali->host = (void __iomem *)CONFIG_SYS_NAND_DATA_BASE;
-
- return denali_init(denali);
-}
-
-void board_nand_init(void)
-{
- if (__board_nand_init() < 0)
- pr_warn("Failed to initialize Denali NAND controller.\n");
-}
-#endif