]> git.sur5r.net Git - u-boot/blobdiff - board/esd/common/esd405ep_nand.c
drivers, block: remove sil680 driver
[u-boot] / board / esd / common / esd405ep_nand.c
index f46936ca3667223dc53d9e214ec62da6bc3bdcec..51ac10c8c0a30e7e356c6f024320854490e9e87c 100644 (file)
@@ -16,7 +16,7 @@
  */
 static void esd405ep_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 {
-       struct nand_chip *this = mtd->priv;
+       struct nand_chip *this = mtd_to_nand(mtd);
        if (ctrl & NAND_CTRL_CHANGE) {
                if ( ctrl & NAND_CLE )
                        out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_CLE);