summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf561
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-01 12:02:59 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-08 13:02:57 -0800
commit4d17a89252ffb58c58f8b39d974ffd8231c33e85 (patch)
tree3df3229430b1909fdadcb9792b4e0e75fe89ee95 /arch/blackfin/mach-bf561
parent9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff)
downloadlinux-4d17a89252ffb58c58f8b39d974ffd8231c33e85.tar.gz
linux-4d17a89252ffb58c58f8b39d974ffd8231c33e85.tar.bz2
linux-4d17a89252ffb58c58f8b39d974ffd8231c33e85.zip
blackfin: 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 blackfin 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/blackfin/mach-bf561')
-rw-r--r--arch/blackfin/mach-bf561/boards/acvilon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf561/boards/acvilon.c b/arch/blackfin/mach-bf561/boards/acvilon.c
index 6ab951534d79..37f8f25a1347 100644
--- a/arch/blackfin/mach-bf561/boards/acvilon.c
+++ b/arch/blackfin/mach-bf561/boards/acvilon.c
@@ -267,7 +267,7 @@ static struct mtd_partition bfin_plat_nand_partitions[] = {
static void bfin_plat_nand_cmd_ctrl(struct mtd_info *mtd, int cmd,
unsigned int ctrl)
{
- struct nand_chip *this = mtd->priv;
+ struct nand_chip *this = mtd_to_nand(mtd);
if (cmd == NAND_CMD_NONE)
return;