diff options
Diffstat (limited to 'drivers/mtd/nand/nand_imx.c')
-rw-r--r-- | drivers/mtd/nand/nand_imx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index 02ddc661a6..1a065cb46f 100644 --- a/drivers/mtd/nand/nand_imx.c +++ b/drivers/mtd/nand/nand_imx.c @@ -32,7 +32,6 @@ #include <errno.h> struct imx_nand_host { - struct mtd_info mtd; struct nand_chip nand; struct mtd_partition *parts; struct device_d *dev; @@ -1237,8 +1236,7 @@ static int __init imxnd_probe(struct device_d *dev) /* structures must be linked */ this = &host->nand; - mtd = &host->mtd; - mtd->priv = this; + mtd = &this->mtd; mtd->parent = dev; mtd->name = "imx_nand"; |