]> 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)
commit773e031f4b3dbfe8d683e7a158f94825c4dbe4cc
treea84736c6e3522d42597f8501675fa845d586f473
parentec053bfb724d849a4d400d64962bab97cfe9c7f0
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