summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2016-08-29 15:20:52 +1200
committerScott Wood <oss@buserror.net>2016-09-01 17:30:11 -0500
commit91395b5d4ebb07bf6488058f0ba37256856816f6 (patch)
tree094b9e6c233961422f08b7d3870bdc379e1d894c /drivers/mtd
parentcb1cbdd96962931de2ac948a184874e2672f3f96 (diff)
mtd: nand: pxa3xx: use nand_set_controller_data
In commit 17cb4b8f327e ("mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data") the assignment of mtd->priv was removed but was not replaced. This adds the required nand_set_controller_data() call. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index d3ac5391f1..b1d58e036a 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1496,6 +1496,7 @@ static int alloc_nand_resource(struct pxa3xx_nand_info *info)
host->read_id_bytes = 4;
mtd->owner = THIS_MODULE;
+ nand_set_controller_data(chip, host);
chip->ecc.read_page = pxa3xx_nand_read_page_hwecc;
chip->ecc.write_page = pxa3xx_nand_write_page_hwecc;
chip->controller = &info->controller;