summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-01 12:02:58 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-07 18:58:20 -0800
commitc993e09504fca192bac4ac3f5a3411ac68cba2e6 (patch)
treec208eb6bceee72dab2f5ac6ab9ebbe0f7da99eca /arch/arm/mach-imx
parent9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff)
downloadlinux-c993e09504fca192bac4ac3f5a3411ac68cba2e6.tar.gz
linux-c993e09504fca192bac4ac3f5a3411ac68cba2e6.tar.bz2
linux-c993e09504fca192bac4ac3f5a3411ac68cba2e6.zip
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)
*/
static void qong_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
{
- struct nand_chip *nand_chip = mtd->priv;
+ struct nand_chip *nand_chip = mtd_to_nand(mtd);
if (cmd == NAND_CMD_NONE)
return;