diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-01 14:03:00 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 00:02:46 +0300 |
commit | 04104422bce2693d07001dc4efb5cb935c5053bb (patch) | |
tree | fdcce67a7866c3b8e6f0df4faaf9fc25d462549c /arch/cris/arch-v32/drivers/mach-a3/nandflash.c | |
parent | 9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff) | |
download | linux-04104422bce2693d07001dc4efb5cb935c5053bb.tar.xz |
cris: 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 CRIS specific implementations to use this
helper.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/cris/arch-v32/drivers/mach-a3/nandflash.c')
-rw-r--r-- | arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c index 7fb52128ddc9..db953cfabee1 100644 --- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c +++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c @@ -52,7 +52,7 @@ static void crisv32_hwcontrol(struct mtd_info *mtd, int cmd, { unsigned long flags; reg_pio_rw_dout dout; - struct nand_chip *this = mtd->priv; + struct nand_chip *this = mtd_to_nand(mtd); local_irq_save(flags); |