From: Marek Vasut Date: Thu, 11 Jul 2013 15:23:26 +0000 (+0200) Subject: net: fec: Remove bogus flush_dcache_range() call X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3104ce1f6f2d541e8bf2edfb698d0f51dc43b5fb;p=project%2Fbcm63xx%2Fu-boot.git 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 --- 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); } /*