]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
mtd: nand: denali: remove ad-hoc board_nand_init() entry
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 29 Nov 2017 10:19:09 +0000 (19:19 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 4 Dec 2017 12:59:59 +0000 (21:59 +0900)
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>
drivers/mtd/nand/denali.c

index 7a87adc378ebe3e7f2d9b47b1fdf68bbee41b1fb..8ff2d094226f1e3d8f599d985d4d76682f5141a1 100644 (file)
@@ -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