summaryrefslogtreecommitdiff
path: root/drivers/net/fec_mxc.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-07-11 17:23:26 +0200
committerStefano Babic <sbabic@denx.de>2013-07-12 09:26:08 +0200
commit3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb (patch)
treec4bf58e8acb4b10f103a599db133800085997ed1 /drivers/net/fec_mxc.c
parent32cc24d3c75c2b43e8b08b117e00120b7cc32f68 (diff)
downloadu-boot-imx-3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb.zip
u-boot-imx-3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb.tar.gz
u-boot-imx-3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb.tar.bz2
net: fec: Remove bogus flush_dcache_range() call
Remove incorrectly called and duplicate flush_dcache_range() call from fec_mxc driver. The call is not needed, since the caches are already flushed in fec_tbd_init(), moreover the second argument should be the ending address, not size. Signed-off-by: Marek Vasut <marex@denx.de> Reported-by: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/net/fec_mxc.c')
-rw-r--r--drivers/net/fec_mxc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index da95e28..97bf8fe 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -560,7 +560,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
}
memset(fec->tbd_base, 0, size);
fec_tbd_init(fec);
- flush_dcache_range((unsigned)fec->tbd_base, size);
}
/*