]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/ndfc.c
Merge branch 'master' of git://git.denx.de/u-boot-samsung
[u-boot] / drivers / mtd / nand / ndfc.c
index 0dd678958276521c0c64c1dfad177d95c3d6e2ea..0729e0c9c02a5d00c250f4fa92f6b1eb8a49a5c4 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/mtd/nand_ecc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
-#include <ppc4xx.h>
+#include <asm/ppc4xx.h>
 
 /*
  * We need to store the info, which chip-select (CS) is used for the
@@ -201,6 +201,8 @@ int board_nand_init(struct nand_chip *nand)
 #ifndef CONFIG_NAND_SPL
        nand->write_buf  = ndfc_write_buf;
        nand->verify_buf = ndfc_verify_buf;
+
+       chip++;
 #else
        /*
         * Setup EBC (CS0 only right now)
@@ -211,7 +213,5 @@ int board_nand_init(struct nand_chip *nand)
        mtebc(PB0AP, CONFIG_SYS_EBC_PB0AP);
 #endif
 
-       chip++;
-
        return 0;
 }