]> git.baikalelectronics.ru Git - kernel.git/commit
net: ep93xx_eth: allocate buffers using kmalloc()
authorMika Westerberg <mika.westerberg@iki.fi>
Sat, 11 Jun 2011 08:39:56 +0000 (08:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2011 23:25:15 +0000 (16:25 -0700)
commit970dc26a270341ac99ee7c23c79cf69b82feadef
treea84736c6e3522d42597f8501675fa845d586f473
parentcaad51cb581cb8032d0e5ce3e7278878d97e657a
net: ep93xx_eth: allocate buffers using kmalloc()

We can use simply kmalloc() to allocate the buffers. This also simplifies the
code and allows us to perform DMA sync operations more easily.

Memory is allocated with only GFP_KERNEL since there are no DMA allocation
restrictions on this platform.

Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Tested-by: Petr Stetiar <ynezz@true.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ep93xx_eth.c