[PATCH] mtd ARM OMAP: Fix compile errors
Teresa Gámez
t.gamez at phytec.de
Wed Oct 17 04:18:43 EDT 2012
Fix compile errors in latest next, caused by commit
56b92e5187692f0ca28a13f0a5993ea66c99b60a
mtd: add parent support
Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
drivers/mtd/nand/nand_omap_gpmc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/nand_omap_gpmc.c b/drivers/mtd/nand/nand_omap_gpmc.c
index f4f5335..a2e3eb4 100644
--- a/drivers/mtd/nand/nand_omap_gpmc.c
+++ b/drivers/mtd/nand/nand_omap_gpmc.c
@@ -670,7 +670,7 @@ static void omap_write_buf_pref(struct mtd_info *mtd,
if (!status)
break;
if (is_timeout(start, 100 * MSECOND)) {
- dev_err(mtd->dev, "prefetch flush timed out\n");
+ dev_err(mtd->parent, "prefetch flush timed out\n");
break;
}
}
@@ -929,7 +929,7 @@ static int gpmc_nand_probe(struct device_d *pdev)
minfo = &oinfo->minfo;
minfo->priv = (void *)nand;
- minfo->parent = dev;
+ minfo->parent = pdev;
if (pdata->cs >= GPMC_NUM_CS) {
dev_dbg(pdev, "Invalid CS!\n");
--
1.7.0.4
More information about the barebox
mailing list