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-pxa/balloon3.c | |
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-pxa/balloon3.c')
-rw-r--r-- | arch/arm/mach-pxa/balloon3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index a727282bfa99..7734ec4f1385 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c @@ -572,7 +572,7 @@ static inline void balloon3_i2c_init(void) {} #if defined(CONFIG_MTD_NAND_PLATFORM)||defined(CONFIG_MTD_NAND_PLATFORM_MODULE) static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { - struct nand_chip *this = mtd->priv; + struct nand_chip *this = mtd_to_nand(mtd); uint8_t balloon3_ctl_set = 0, balloon3_ctl_clr = 0; if (ctrl & NAND_CTRL_CHANGE) { |