summaryrefslogtreecommitdiffstats
path: root/arch/mips/pnx833x
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-01 12:03:01 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-08 13:03:07 -0800
commitb1afda0e336f3b65e1dc765e3405d3231d9782fe (patch)
tree70f760c30eaf8a4c5605c83631cc58a41251913b /arch/mips/pnx833x
parent9eba47ddd8fee8a21f45e6e1d707103f040d90c7 (diff)
downloadop-kernel-dev-b1afda0e336f3b65e1dc765e3405d3231d9782fe.zip
op-kernel-dev-b1afda0e336f3b65e1dc765e3405d3231d9782fe.tar.gz
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/pnx833x')
-rw-r--r--arch/mips/pnx833x/common/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pnx833x/common/platform.c b/arch/mips/pnx833x/common/platform.c
index b4b774b..3cd3577 100644
--- a/arch/mips/pnx833x/common/platform.c
+++ b/arch/mips/pnx833x/common/platform.c
@@ -180,7 +180,7 @@ static struct platform_device pnx833x_sata_device = {
static void
pnx833x_flash_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);
unsigned long nandaddr = (unsigned long)this->IO_ADDR_W;
if (cmd == NAND_CMD_NONE)
OpenPOWER on IntegriCloud