]> git.sur5r.net Git - u-boot/commitdiff
board: MCR3000: replace mtd->priv by mtd_to_nand()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 16 Mar 2018 16:20:49 +0000 (17:20 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Apr 2018 20:30:37 +0000 (16:30 -0400)
Since commit 17cb4b8f327eb ("mtd: nand: Add+use mtd_to/from_nand and
nand_get/set_controller_data"), mtd_to_nand() has to be used instead
of mtd->priv

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
board/cssi/MCR3000/nand.c

index 8e5b0d0618ffdb78d0b91cad121b9ae6e88aebdc..4c6fc865f2300e8a9f2fc351906a4921c996bb7e 100644 (file)
@@ -17,7 +17,7 @@
 
 static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl)
 {
-       struct nand_chip *this  = mtdinfo->priv;
+       struct nand_chip *this  = mtd_to_nand(mtdinfo);
        immap_t __iomem *immr   = (immap_t __iomem *)CONFIG_SYS_IMMR;
        unsigned short pddat    = 0;