diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-12-01 12:02:58 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-08 03:58:20 +0100 |
commit | c993e09504fca192bac4ac3f5a3411ac68cba2e6 (patch) | |
tree | c208eb6bceee72dab2f5ac6ab9ebbe0f7da99eca /arch/arm/mach-omap1 | |
parent | mtd: nand: add an mtd_to_nand() helper (diff) | |
download | linux-c993e09504fca192bac4ac3f5a3411ac68cba2e6.tar.xz 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-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/board-nand.c b/arch/arm/mach-omap1/board-nand.c index 4d0835327d20..7684f9203474 100644 --- a/arch/arm/mach-omap1/board-nand.c +++ b/arch/arm/mach-omap1/board-nand.c @@ -22,7 +22,7 @@ void omap1_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); unsigned long mask; if (cmd == NAND_CMD_NONE) |