]> git.sur5r.net Git - u-boot/commitdiff
mtd: nand: pxa3xx: use nand_set_controller_data
authorChris Packham <judge.packham@gmail.com>
Mon, 29 Aug 2016 03:20:52 +0000 (15:20 +1200)
committerScott Wood <oss@buserror.net>
Thu, 1 Sep 2016 22:30:11 +0000 (17:30 -0500)
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>
drivers/mtd/nand/pxa3xx_nand.c

index d3ac5391f156e84fce4134fb22f8f01303206b90..b1d58e036a1dab6adb50b5369ceb6521090c552f 100644 (file)
@@ -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;