diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-01 14:02:58 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-08 05:58:20 +0300 |
commit | c993e09504fca192bac4ac3f5a3411ac68cba2e6 (patch) | |
tree | c208eb6bceee72dab2f5ac6ab9ebbe0f7da99eca /arch/arm/mach-imx | |
parent | 9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff) | |
download | linux-c993e09504fca192bac4ac3f5a3411ac68cba2e6.tar.xz |
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.c | 2 |
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; |