diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-03-16 17:20:49 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 16:30:37 -0400 |
commit | 3949d2a7169cc4abe94bf9bf144a6af180c13dd8 (patch) | |
tree | 84771d2d8b93490f753c3fc134d6356846046730 | |
parent | 872807b1e57aa0f376d8fd35ea548a8befa8945b (diff) |
board: MCR3000: replace mtd->priv by mtd_to_nand()
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>
-rw-r--r-- | board/cssi/MCR3000/nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cssi/MCR3000/nand.c b/board/cssi/MCR3000/nand.c index 8e5b0d0618..4c6fc865f2 100644 --- a/board/cssi/MCR3000/nand.c +++ b/board/cssi/MCR3000/nand.c @@ -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; |