]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fec: Remove bogus flush_dcache_range() call
authorMarek Vasut <marex@denx.de>
Thu, 11 Jul 2013 15:23:26 +0000 (17:23 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 12 Jul 2013 07:26:08 +0000 (09:26 +0200)
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>
drivers/net/fec_mxc.c

index da95e285b70db65f1f6bb709414ca5ff5ec2f8b0..97bf8fe17d64beeebbdbcb134361cccfc864831e 100644 (file)
@@ -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);
        }
 
        /*