aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-01 06:02:58 -0500
committerBrian Norris <computersforpeace@gmail.com>2015-12-07 21:58:20 -0500
commitc993e09504fca192bac4ac3f5a3411ac68cba2e6 (patch)
treec208eb6bceee72dab2f5ac6ab9ebbe0f7da99eca /arch/arm/mach-imx
parent9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff)
ARM: nand: make use of mtd_to_nand() where appropriate
mtd_to_nand() was recently introduced to avoid direct accesses to the mtd->priv field. Update all ARM specific implementations to use this helper. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/mach-qong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-qong.c b/arch/arm/mach-imx/mach-qong.c
index a213e7b9cb1c..5c2764604727 100644
--- a/arch/arm/mach-imx/mach-qong.c
+++ b/arch/arm/mach-imx/mach-qong.c
@@ -131,7 +131,7 @@ static void qong_init_nor_mtd(void)
131 */ 131 */
132static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) 132static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
133{ 133{
134 struct nand_chip *nand_chip = mtd->priv; 134 struct nand_chip *nand_chip = mtd_to_nand(mtd);
135 135
136 if (cmd == NAND_CMD_NONE) 136 if (cmd == NAND_CMD_NONE)
137 return; 137 return;