aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-07-10 02:20:49 -0400
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-07-15 12:18:59 -0400
commita263339e7735496d401c4eb315e2e8549f8ace73 (patch)
tree6af9887c4a30f762c685dc40d6c7e2329356ec67
parentce65e581ea5c1f70e99afb73c3c24152dca6b6f8 (diff)
[PATCH] Don't use GFP_DMA, it's for ISA devices
GFP_DMA forces allocation in the first 16M of memory, which is not needed. USB buffers should be using GFP_KERNEL. Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--at76_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.c b/at76_usb.c
index 2d28f19..d541413 100644
--- a/at76_usb.c
+++ b/at76_usb.c
@@ -290,7 +290,7 @@ static int at76_usbdfu_download(struct usb_device *udev, u8 *dfu_buffer,
return -EINVAL;
}
- dmabuf = kmalloc(DFU_PACKETSIZE, GFP_KERNEL | GFP_DMA);
+ dmabuf = kmalloc(DFU_PACKETSIZE, GFP_KERNEL);
if (dmabuf == NULL)
return -ENOMEM;