diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-01 14:03:01 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 00:03:07 +0300 |
commit | b1afda0e336f3b65e1dc765e3405d3231d9782fe (patch) | |
tree | 70f760c30eaf8a4c5605c83631cc58a41251913b /arch/mips/rb532 | |
parent | 9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff) | |
download | linux-b1afda0e336f3b65e1dc765e3405d3231d9782fe.tar.xz |
mips: 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 MIPS specific implementations to use this
helper.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r-- | arch/mips/rb532/devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 9bd7a2de0765..0966adccf520 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -148,7 +148,7 @@ static int rb532_dev_ready(struct mtd_info *mtd) static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { - struct nand_chip *chip = mtd->priv; + struct nand_chip *chip = mtd_to_nand(mtd); unsigned char orbits, nandbits; if (ctrl & NAND_CTRL_CHANGE) { |