From 3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Thu, 11 Jul 2013 17:23:26 +0200 Subject: [PATCH] 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 Reported-by: Albert Aribaud Cc: Stefano Babic Cc: Tom Rini --- drivers/net/fec_mxc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index da95e285b7..97bf8fe17d 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); } /* -- 2.25.1