mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mtd ARM OMAP: Fix compile errors
@ 2012-10-17  8:18 Teresa Gámez
  0 siblings, 0 replies; only message in thread
From: Teresa Gámez @ 2012-10-17  8:18 UTC (permalink / raw)
  To: barebox

Fix compile errors in latest next, caused by commit
56b92e5187692f0ca28a13f0a5993ea66c99b60a
mtd: add parent support

Signed-off-by: Teresa Gámez <t.gamez@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-17  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-17  8:18 [PATCH] mtd ARM OMAP: Fix compile errors Teresa Gámez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox