diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-12-06 23:33:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:24 -0500 |
commit | 54e6ecb23951b195d02433a741c7f7cb0b796c78 (patch) | |
tree | c8885c49f37c8d383945b8af69d51597494ed62c /drivers/usb/misc | |
parent | f7267c0c0721fd02ad3dc37c3d6dd24ccd81d4d6 (diff) |
[PATCH] slab: remove SLAB_ATOMIC
SLAB_ATOMIC is an alias of GFP_ATOMIC
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 4 | ||||
-rw-r--r-- | drivers/usb/misc/phidgetmotorcontrol.c | 4 | ||||
-rw-r--r-- | drivers/usb/misc/usbtest.c | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index 9659c79e187e..371bf2b1197d 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c | |||
@@ -377,7 +377,7 @@ static void interfacekit_irq(struct urb *urb) | |||
377 | schedule_delayed_work(&kit->do_notify, 0); | 377 | schedule_delayed_work(&kit->do_notify, 0); |
378 | 378 | ||
379 | resubmit: | 379 | resubmit: |
380 | status = usb_submit_urb(urb, SLAB_ATOMIC); | 380 | status = usb_submit_urb(urb, GFP_ATOMIC); |
381 | if (status) | 381 | if (status) |
382 | err("can't resubmit intr, %s-%s/interfacekit0, status %d", | 382 | err("can't resubmit intr, %s-%s/interfacekit0, status %d", |
383 | kit->udev->bus->bus_name, | 383 | kit->udev->bus->bus_name, |
@@ -568,7 +568,7 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic | |||
568 | 568 | ||
569 | kit->dev_no = -1; | 569 | kit->dev_no = -1; |
570 | kit->ifkit = ifkit; | 570 | kit->ifkit = ifkit; |
571 | kit->data = usb_buffer_alloc(dev, URB_INT_SIZE, SLAB_ATOMIC, &kit->data_dma); | 571 | kit->data = usb_buffer_alloc(dev, URB_INT_SIZE, GFP_ATOMIC, &kit->data_dma); |
572 | if (!kit->data) | 572 | if (!kit->data) |
573 | goto out; | 573 | goto out; |
574 | 574 | ||
diff --git a/drivers/usb/misc/phidgetmotorcontrol.c b/drivers/usb/misc/phidgetmotorcontrol.c index 2bb4fa572bb7..5727e1ea2f91 100644 --- a/drivers/usb/misc/phidgetmotorcontrol.c +++ b/drivers/usb/misc/phidgetmotorcontrol.c | |||
@@ -151,7 +151,7 @@ static void motorcontrol_irq(struct urb *urb) | |||
151 | schedule_delayed_work(&mc->do_notify, 0); | 151 | schedule_delayed_work(&mc->do_notify, 0); |
152 | 152 | ||
153 | resubmit: | 153 | resubmit: |
154 | status = usb_submit_urb(urb, SLAB_ATOMIC); | 154 | status = usb_submit_urb(urb, GFP_ATOMIC); |
155 | if (status) | 155 | if (status) |
156 | dev_err(&mc->intf->dev, | 156 | dev_err(&mc->intf->dev, |
157 | "can't resubmit intr, %s-%s/motorcontrol0, status %d", | 157 | "can't resubmit intr, %s-%s/motorcontrol0, status %d", |
@@ -338,7 +338,7 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic | |||
338 | goto out; | 338 | goto out; |
339 | 339 | ||
340 | mc->dev_no = -1; | 340 | mc->dev_no = -1; |
341 | mc->data = usb_buffer_alloc(dev, URB_INT_SIZE, SLAB_ATOMIC, &mc->data_dma); | 341 | mc->data = usb_buffer_alloc(dev, URB_INT_SIZE, GFP_ATOMIC, &mc->data_dma); |
342 | if (!mc->data) | 342 | if (!mc->data) |
343 | goto out; | 343 | goto out; |
344 | 344 | ||
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 194065dbb51f..ea04dccdc651 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -819,7 +819,7 @@ error: | |||
819 | 819 | ||
820 | /* resubmit if we need to, else mark this as done */ | 820 | /* resubmit if we need to, else mark this as done */ |
821 | if ((status == 0) && (ctx->pending < ctx->count)) { | 821 | if ((status == 0) && (ctx->pending < ctx->count)) { |
822 | if ((status = usb_submit_urb (urb, SLAB_ATOMIC)) != 0) { | 822 | if ((status = usb_submit_urb (urb, GFP_ATOMIC)) != 0) { |
823 | dbg ("can't resubmit ctrl %02x.%02x, err %d", | 823 | dbg ("can't resubmit ctrl %02x.%02x, err %d", |
824 | reqp->bRequestType, reqp->bRequest, status); | 824 | reqp->bRequestType, reqp->bRequest, status); |
825 | urb->dev = NULL; | 825 | urb->dev = NULL; |
@@ -999,7 +999,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
999 | context.urb = urb; | 999 | context.urb = urb; |
1000 | spin_lock_irq (&context.lock); | 1000 | spin_lock_irq (&context.lock); |
1001 | for (i = 0; i < param->sglen; i++) { | 1001 | for (i = 0; i < param->sglen; i++) { |
1002 | context.status = usb_submit_urb (urb [i], SLAB_ATOMIC); | 1002 | context.status = usb_submit_urb (urb [i], GFP_ATOMIC); |
1003 | if (context.status != 0) { | 1003 | if (context.status != 0) { |
1004 | dbg ("can't submit urb[%d], status %d", | 1004 | dbg ("can't submit urb[%d], status %d", |
1005 | i, context.status); | 1005 | i, context.status); |
@@ -1041,7 +1041,7 @@ static void unlink1_callback (struct urb *urb) | |||
1041 | 1041 | ||
1042 | // we "know" -EPIPE (stall) never happens | 1042 | // we "know" -EPIPE (stall) never happens |
1043 | if (!status) | 1043 | if (!status) |
1044 | status = usb_submit_urb (urb, SLAB_ATOMIC); | 1044 | status = usb_submit_urb (urb, GFP_ATOMIC); |
1045 | if (status) { | 1045 | if (status) { |
1046 | urb->status = status; | 1046 | urb->status = status; |
1047 | complete ((struct completion *) urb->context); | 1047 | complete ((struct completion *) urb->context); |
@@ -1481,7 +1481,7 @@ test_iso_queue (struct usbtest_dev *dev, struct usbtest_param *param, | |||
1481 | spin_lock_irq (&context.lock); | 1481 | spin_lock_irq (&context.lock); |
1482 | for (i = 0; i < param->sglen; i++) { | 1482 | for (i = 0; i < param->sglen; i++) { |
1483 | ++context.pending; | 1483 | ++context.pending; |
1484 | status = usb_submit_urb (urbs [i], SLAB_ATOMIC); | 1484 | status = usb_submit_urb (urbs [i], GFP_ATOMIC); |
1485 | if (status < 0) { | 1485 | if (status < 0) { |
1486 | ERROR (dev, "submit iso[%d], error %d\n", i, status); | 1486 | ERROR (dev, "submit iso[%d], error %d\n", i, status); |
1487 | if (i == 0) { | 1487 | if (i == 0) { |