summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2008-04-03 16:19:33 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-04-03 16:19:33 -0400
commit6eae9b0acdb6f03ed87ef882760e0ef8f440dc1a (patch)
treee3818e1b1032570aa74218aa90c532624189b9e6 /drivers/input/joystick
parent99de0912be6f384fc31c8e8e7ba0850d0d670385 (diff)
downloadblackbird-op-linux-6eae9b0acdb6f03ed87ef882760e0ef8f440dc1a.tar.gz
blackbird-op-linux-6eae9b0acdb6f03ed87ef882760e0ef8f440dc1a.zip
Input: xpad - don't use GFP_ATOMIC
GFP_ATOMIC should not be used when GFP_KERNEL can be used. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r--drivers/input/joystick/xpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index ebf8303d6f56..d4d289e75dc2 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -497,7 +497,7 @@ static int xpad_init_output(struct usb_interface *intf, struct usb_xpad *xpad)
return 0;
xpad->odata = usb_buffer_alloc(xpad->udev, XPAD_PKT_LEN,
- GFP_ATOMIC, &xpad->odata_dma );
+ GFP_KERNEL, &xpad->odata_dma);
if (!xpad->odata)
goto fail1;
@@ -729,7 +729,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
goto fail1;
xpad->idata = usb_buffer_alloc(udev, XPAD_PKT_LEN,
- GFP_ATOMIC, &xpad->idata_dma);
+ GFP_KERNEL, &xpad->idata_dma);
if (!xpad->idata)
goto fail1;
OpenPOWER on IntegriCloud