[PATCH 1/7] fec i.MX28: Make it work with MMU on
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 14 14:51:33 EST 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/fec_imx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 51cdb40..440ef1f 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -565,7 +565,7 @@ static int fec_recv(struct eth_device *dev)
if (cpu_is_mx28())
imx28_fix_endianess_rd(
- (void *)readl(&rbd->data_pointer),
+ phys_to_virt(readl(&rbd->data_pointer)),
(readw(&rbd->data_length) + 3) >> 2);
/*
--
1.7.2.3
More information about the barebox
mailing list