diff options
Diffstat (limited to 'drivers/usb')
45 files changed, 97 insertions, 94 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index f2d196fa1e8b..dae4ef1e8fe5 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -64,6 +64,8 @@ | |||
64 | #include <linux/kthread.h> | 64 | #include <linux/kthread.h> |
65 | #include <linux/version.h> | 65 | #include <linux/version.h> |
66 | #include <linux/mutex.h> | 66 | #include <linux/mutex.h> |
67 | #include <linux/freezer.h> | ||
68 | |||
67 | #include <asm/unaligned.h> | 69 | #include <asm/unaligned.h> |
68 | 70 | ||
69 | #include "usbatm.h" | 71 | #include "usbatm.h" |
diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c index 840442a25b61..c3915dc28608 100644 --- a/drivers/usb/core/buffer.c +++ b/drivers/usb/core/buffer.c | |||
@@ -93,7 +93,7 @@ void hcd_buffer_destroy (struct usb_hcd *hcd) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | 95 | ||
96 | /* sometimes alloc/free could use kmalloc with SLAB_DMA, for | 96 | /* sometimes alloc/free could use kmalloc with GFP_DMA, for |
97 | * better sharing and to leverage mm/slab.c intelligence. | 97 | * better sharing and to leverage mm/slab.c intelligence. |
98 | */ | 98 | */ |
99 | 99 | ||
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 9be41ed1f9a6..2651c2e2a89f 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/usbdevice_fs.h> | 22 | #include <linux/usbdevice_fs.h> |
23 | #include <linux/kthread.h> | 23 | #include <linux/kthread.h> |
24 | #include <linux/mutex.h> | 24 | #include <linux/mutex.h> |
25 | #include <linux/freezer.h> | ||
25 | 26 | ||
26 | #include <asm/semaphore.h> | 27 | #include <asm/semaphore.h> |
27 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
@@ -460,7 +461,7 @@ void usb_hub_tt_clear_buffer (struct usb_device *udev, int pipe) | |||
460 | * since each TT has "at least two" buffers that can need it (and | 461 | * since each TT has "at least two" buffers that can need it (and |
461 | * there can be many TTs per hub). even if they're uncommon. | 462 | * there can be many TTs per hub). even if they're uncommon. |
462 | */ | 463 | */ |
463 | if ((clear = kmalloc (sizeof *clear, SLAB_ATOMIC)) == NULL) { | 464 | if ((clear = kmalloc (sizeof *clear, GFP_ATOMIC)) == NULL) { |
464 | dev_err (&udev->dev, "can't save CLEAR_TT_BUFFER state\n"); | 465 | dev_err (&udev->dev, "can't save CLEAR_TT_BUFFER state\n"); |
465 | /* FIXME recover somehow ... RESET_TT? */ | 466 | /* FIXME recover somehow ... RESET_TT? */ |
466 | return; | 467 | return; |
@@ -2371,7 +2372,7 @@ check_highspeed (struct usb_hub *hub, struct usb_device *udev, int port1) | |||
2371 | struct usb_qualifier_descriptor *qual; | 2372 | struct usb_qualifier_descriptor *qual; |
2372 | int status; | 2373 | int status; |
2373 | 2374 | ||
2374 | qual = kmalloc (sizeof *qual, SLAB_KERNEL); | 2375 | qual = kmalloc (sizeof *qual, GFP_KERNEL); |
2375 | if (qual == NULL) | 2376 | if (qual == NULL) |
2376 | return; | 2377 | return; |
2377 | 2378 | ||
@@ -2922,7 +2923,7 @@ static int config_descriptors_changed(struct usb_device *udev) | |||
2922 | if (len < le16_to_cpu(udev->config[index].desc.wTotalLength)) | 2923 | if (len < le16_to_cpu(udev->config[index].desc.wTotalLength)) |
2923 | len = le16_to_cpu(udev->config[index].desc.wTotalLength); | 2924 | len = le16_to_cpu(udev->config[index].desc.wTotalLength); |
2924 | } | 2925 | } |
2925 | buf = kmalloc (len, SLAB_KERNEL); | 2926 | buf = kmalloc (len, GFP_KERNEL); |
2926 | if (buf == NULL) { | 2927 | if (buf == NULL) { |
2927 | dev_err(&udev->dev, "no mem to re-read configs after reset\n"); | 2928 | dev_err(&udev->dev, "no mem to re-read configs after reset\n"); |
2928 | /* assume the worst */ | 2929 | /* assume the worst */ |
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 7390b67c609d..149aa8bfb1fe 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c | |||
@@ -488,7 +488,7 @@ void usb_sg_wait (struct usb_sg_request *io) | |||
488 | int retval; | 488 | int retval; |
489 | 489 | ||
490 | io->urbs [i]->dev = io->dev; | 490 | io->urbs [i]->dev = io->dev; |
491 | retval = usb_submit_urb (io->urbs [i], SLAB_ATOMIC); | 491 | retval = usb_submit_urb (io->urbs [i], GFP_ATOMIC); |
492 | 492 | ||
493 | /* after we submit, let completions or cancelations fire; | 493 | /* after we submit, let completions or cancelations fire; |
494 | * we handshake using io->status. | 494 | * we handshake using io->status. |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 8b975d15538d..c98316ce8384 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -250,7 +250,7 @@ | |||
250 | #include <linux/slab.h> | 250 | #include <linux/slab.h> |
251 | #include <linux/spinlock.h> | 251 | #include <linux/spinlock.h> |
252 | #include <linux/string.h> | 252 | #include <linux/string.h> |
253 | #include <linux/suspend.h> | 253 | #include <linux/freezer.h> |
254 | #include <linux/utsname.h> | 254 | #include <linux/utsname.h> |
255 | 255 | ||
256 | #include <linux/usb_ch9.h> | 256 | #include <linux/usb_ch9.h> |
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 64554acad63f..31351826f2ba 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -1236,7 +1236,7 @@ autoconf_fail: | |||
1236 | 1236 | ||
1237 | 1237 | ||
1238 | /* ok, we made sense of the hardware ... */ | 1238 | /* ok, we made sense of the hardware ... */ |
1239 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1239 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1240 | if (!dev) { | 1240 | if (!dev) { |
1241 | return -ENOMEM; | 1241 | return -ENOMEM; |
1242 | } | 1242 | } |
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index a3076da3f4eb..805a9826842d 100644 --- a/drivers/usb/gadget/goku_udc.c +++ b/drivers/usb/gadget/goku_udc.c | |||
@@ -1864,7 +1864,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1864 | } | 1864 | } |
1865 | 1865 | ||
1866 | /* alloc, and start init */ | 1866 | /* alloc, and start init */ |
1867 | dev = kmalloc (sizeof *dev, SLAB_KERNEL); | 1867 | dev = kmalloc (sizeof *dev, GFP_KERNEL); |
1868 | if (dev == NULL){ | 1868 | if (dev == NULL){ |
1869 | pr_debug("enomem %s\n", pci_name(pdev)); | 1869 | pr_debug("enomem %s\n", pci_name(pdev)); |
1870 | retval = -ENOMEM; | 1870 | retval = -ENOMEM; |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 86924f9cdd7e..3fb1044a4db0 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -412,7 +412,7 @@ ep_read (struct file *fd, char __user *buf, size_t len, loff_t *ptr) | |||
412 | /* FIXME readahead for O_NONBLOCK and poll(); careful with ZLPs */ | 412 | /* FIXME readahead for O_NONBLOCK and poll(); careful with ZLPs */ |
413 | 413 | ||
414 | value = -ENOMEM; | 414 | value = -ENOMEM; |
415 | kbuf = kmalloc (len, SLAB_KERNEL); | 415 | kbuf = kmalloc (len, GFP_KERNEL); |
416 | if (unlikely (!kbuf)) | 416 | if (unlikely (!kbuf)) |
417 | goto free1; | 417 | goto free1; |
418 | 418 | ||
@@ -456,7 +456,7 @@ ep_write (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) | |||
456 | /* FIXME writebehind for O_NONBLOCK and poll(), qlen = 1 */ | 456 | /* FIXME writebehind for O_NONBLOCK and poll(), qlen = 1 */ |
457 | 457 | ||
458 | value = -ENOMEM; | 458 | value = -ENOMEM; |
459 | kbuf = kmalloc (len, SLAB_KERNEL); | 459 | kbuf = kmalloc (len, GFP_KERNEL); |
460 | if (!kbuf) | 460 | if (!kbuf) |
461 | goto free1; | 461 | goto free1; |
462 | if (copy_from_user (kbuf, buf, len)) { | 462 | if (copy_from_user (kbuf, buf, len)) { |
@@ -1898,7 +1898,7 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) | |||
1898 | buf += 4; | 1898 | buf += 4; |
1899 | length -= 4; | 1899 | length -= 4; |
1900 | 1900 | ||
1901 | kbuf = kmalloc (length, SLAB_KERNEL); | 1901 | kbuf = kmalloc (length, GFP_KERNEL); |
1902 | if (!kbuf) | 1902 | if (!kbuf) |
1903 | return -ENOMEM; | 1903 | return -ENOMEM; |
1904 | if (copy_from_user (kbuf, buf, length)) { | 1904 | if (copy_from_user (kbuf, buf, length)) { |
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 0b590831582c..3024c679e38e 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
@@ -2861,7 +2861,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id) | |||
2861 | } | 2861 | } |
2862 | 2862 | ||
2863 | /* alloc, and start init */ | 2863 | /* alloc, and start init */ |
2864 | dev = kzalloc (sizeof *dev, SLAB_KERNEL); | 2864 | dev = kzalloc (sizeof *dev, GFP_KERNEL); |
2865 | if (dev == NULL){ | 2865 | if (dev == NULL){ |
2866 | retval = -ENOMEM; | 2866 | retval = -ENOMEM; |
2867 | goto done; | 2867 | goto done; |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 48a09fd89d18..030d87c28c2f 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -2581,7 +2581,7 @@ omap_udc_setup(struct platform_device *odev, struct otg_transceiver *xceiv) | |||
2581 | /* UDC_PULLUP_EN gates the chip clock */ | 2581 | /* UDC_PULLUP_EN gates the chip clock */ |
2582 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; | 2582 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; |
2583 | 2583 | ||
2584 | udc = kzalloc(sizeof(*udc), SLAB_KERNEL); | 2584 | udc = kzalloc(sizeof(*udc), GFP_KERNEL); |
2585 | if (!udc) | 2585 | if (!udc) |
2586 | return -ENOMEM; | 2586 | return -ENOMEM; |
2587 | 2587 | ||
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 0f809dd68492..40710ea1b490 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -1190,7 +1190,7 @@ autoconf_fail: | |||
1190 | 1190 | ||
1191 | 1191 | ||
1192 | /* ok, we made sense of the hardware ... */ | 1192 | /* ok, we made sense of the hardware ... */ |
1193 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1193 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1194 | if (!dev) | 1194 | if (!dev) |
1195 | return -ENOMEM; | 1195 | return -ENOMEM; |
1196 | spin_lock_init (&dev->lock); | 1196 | spin_lock_init (&dev->lock); |
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 34b7a31cd85b..56349d21e6ea 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
@@ -492,7 +492,7 @@ show_periodic (struct class_device *class_dev, char *buf) | |||
492 | unsigned i; | 492 | unsigned i; |
493 | __le32 tag; | 493 | __le32 tag; |
494 | 494 | ||
495 | if (!(seen = kmalloc (DBG_SCHED_LIMIT * sizeof *seen, SLAB_ATOMIC))) | 495 | if (!(seen = kmalloc (DBG_SCHED_LIMIT * sizeof *seen, GFP_ATOMIC))) |
496 | return 0; | 496 | return 0; |
497 | seen_count = 0; | 497 | seen_count = 0; |
498 | 498 | ||
diff --git a/drivers/usb/host/hc_crisv10.c b/drivers/usb/host/hc_crisv10.c index 87eca6aeacf2..9325e46a68c0 100644 --- a/drivers/usb/host/hc_crisv10.c +++ b/drivers/usb/host/hc_crisv10.c | |||
@@ -188,7 +188,7 @@ static DEFINE_TIMER(bulk_eot_timer, NULL, 0, 0); | |||
188 | #define CHECK_ALIGN(x) if (((__u32)(x)) & 0x00000003) \ | 188 | #define CHECK_ALIGN(x) if (((__u32)(x)) & 0x00000003) \ |
189 | {panic("Alignment check (DWORD) failed at %s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__);} | 189 | {panic("Alignment check (DWORD) failed at %s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__);} |
190 | 190 | ||
191 | #define SLAB_FLAG (in_interrupt() ? SLAB_ATOMIC : SLAB_KERNEL) | 191 | #define SLAB_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) |
192 | #define KMALLOC_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) | 192 | #define KMALLOC_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) |
193 | 193 | ||
194 | /* Most helpful debugging aid */ | 194 | /* Most helpful debugging aid */ |
@@ -275,13 +275,13 @@ static volatile USB_SB_Desc_t TxIntrSB_zout __attribute__ ((aligned (4))); | |||
275 | static int zout_buffer[4] __attribute__ ((aligned (4))); | 275 | static int zout_buffer[4] __attribute__ ((aligned (4))); |
276 | 276 | ||
277 | /* Cache for allocating new EP and SB descriptors. */ | 277 | /* Cache for allocating new EP and SB descriptors. */ |
278 | static kmem_cache_t *usb_desc_cache; | 278 | static struct kmem_cache *usb_desc_cache; |
279 | 279 | ||
280 | /* Cache for the registers allocated in the top half. */ | 280 | /* Cache for the registers allocated in the top half. */ |
281 | static kmem_cache_t *top_half_reg_cache; | 281 | static struct kmem_cache *top_half_reg_cache; |
282 | 282 | ||
283 | /* Cache for the data allocated in the isoc descr top half. */ | 283 | /* Cache for the data allocated in the isoc descr top half. */ |
284 | static kmem_cache_t *isoc_compl_cache; | 284 | static struct kmem_cache *isoc_compl_cache; |
285 | 285 | ||
286 | static struct usb_bus *etrax_usb_bus; | 286 | static struct usb_bus *etrax_usb_bus; |
287 | 287 | ||
@@ -1743,7 +1743,7 @@ static irqreturn_t etrax_usb_tx_interrupt(int irq, void *vhc) | |||
1743 | 1743 | ||
1744 | *R_DMA_CH8_SUB3_CLR_INTR = IO_STATE(R_DMA_CH8_SUB3_CLR_INTR, clr_descr, do); | 1744 | *R_DMA_CH8_SUB3_CLR_INTR = IO_STATE(R_DMA_CH8_SUB3_CLR_INTR, clr_descr, do); |
1745 | 1745 | ||
1746 | comp_data = (usb_isoc_complete_data_t*)kmem_cache_alloc(isoc_compl_cache, SLAB_ATOMIC); | 1746 | comp_data = (usb_isoc_complete_data_t*)kmem_cache_alloc(isoc_compl_cache, GFP_ATOMIC); |
1747 | assert(comp_data != NULL); | 1747 | assert(comp_data != NULL); |
1748 | 1748 | ||
1749 | INIT_WORK(&comp_data->usb_bh, etrax_usb_isoc_descr_interrupt_bottom_half, comp_data); | 1749 | INIT_WORK(&comp_data->usb_bh, etrax_usb_isoc_descr_interrupt_bottom_half, comp_data); |
@@ -3010,7 +3010,7 @@ static void etrax_usb_add_to_isoc_sb_list(struct urb *urb, int epid) | |||
3010 | if (!urb->iso_frame_desc[i].length) | 3010 | if (!urb->iso_frame_desc[i].length) |
3011 | continue; | 3011 | continue; |
3012 | 3012 | ||
3013 | next_sb_desc = (USB_SB_Desc_t*)kmem_cache_alloc(usb_desc_cache, SLAB_ATOMIC); | 3013 | next_sb_desc = (USB_SB_Desc_t*)kmem_cache_alloc(usb_desc_cache, GFP_ATOMIC); |
3014 | assert(next_sb_desc != NULL); | 3014 | assert(next_sb_desc != NULL); |
3015 | 3015 | ||
3016 | if (urb->iso_frame_desc[i].length > 0) { | 3016 | if (urb->iso_frame_desc[i].length > 0) { |
@@ -3063,7 +3063,7 @@ static void etrax_usb_add_to_isoc_sb_list(struct urb *urb, int epid) | |||
3063 | if (TxIsocEPList[epid].sub == 0) { | 3063 | if (TxIsocEPList[epid].sub == 0) { |
3064 | dbg_isoc("Isoc traffic not already running, allocating SB"); | 3064 | dbg_isoc("Isoc traffic not already running, allocating SB"); |
3065 | 3065 | ||
3066 | next_sb_desc = (USB_SB_Desc_t*)kmem_cache_alloc(usb_desc_cache, SLAB_ATOMIC); | 3066 | next_sb_desc = (USB_SB_Desc_t*)kmem_cache_alloc(usb_desc_cache, GFP_ATOMIC); |
3067 | assert(next_sb_desc != NULL); | 3067 | assert(next_sb_desc != NULL); |
3068 | 3068 | ||
3069 | next_sb_desc->command = (IO_STATE(USB_SB_command, tt, in) | | 3069 | next_sb_desc->command = (IO_STATE(USB_SB_command, tt, in) | |
@@ -3317,7 +3317,7 @@ static irqreturn_t etrax_usb_hc_interrupt_top_half(int irq, void *vhc) | |||
3317 | 3317 | ||
3318 | restore_flags(flags); | 3318 | restore_flags(flags); |
3319 | 3319 | ||
3320 | reg = (usb_interrupt_registers_t *)kmem_cache_alloc(top_half_reg_cache, SLAB_ATOMIC); | 3320 | reg = (usb_interrupt_registers_t *)kmem_cache_alloc(top_half_reg_cache, GFP_ATOMIC); |
3321 | 3321 | ||
3322 | assert(reg != NULL); | 3322 | assert(reg != NULL); |
3323 | 3323 | ||
diff --git a/drivers/usb/host/ohci-dbg.c b/drivers/usb/host/ohci-dbg.c index 8293c1d4be3f..0f47a57dac28 100644 --- a/drivers/usb/host/ohci-dbg.c +++ b/drivers/usb/host/ohci-dbg.c | |||
@@ -505,7 +505,7 @@ show_periodic (struct class_device *class_dev, char *buf) | |||
505 | char *next; | 505 | char *next; |
506 | unsigned i; | 506 | unsigned i; |
507 | 507 | ||
508 | if (!(seen = kmalloc (DBG_SCHED_LIMIT * sizeof *seen, SLAB_ATOMIC))) | 508 | if (!(seen = kmalloc (DBG_SCHED_LIMIT * sizeof *seen, GFP_ATOMIC))) |
509 | return 0; | 509 | return 0; |
510 | seen_count = 0; | 510 | seen_count = 0; |
511 | 511 | ||
diff --git a/drivers/usb/host/ohci-pnx4008.c b/drivers/usb/host/ohci-pnx4008.c index 2dbb77414905..7f26f9bdbaf1 100644 --- a/drivers/usb/host/ohci-pnx4008.c +++ b/drivers/usb/host/ohci-pnx4008.c | |||
@@ -134,7 +134,7 @@ static int isp1301_attach(struct i2c_adapter *adap, int addr, int kind) | |||
134 | { | 134 | { |
135 | struct i2c_client *c; | 135 | struct i2c_client *c; |
136 | 136 | ||
137 | c = (struct i2c_client *)kzalloc(sizeof(*c), SLAB_KERNEL); | 137 | c = (struct i2c_client *)kzalloc(sizeof(*c), GFP_KERNEL); |
138 | 138 | ||
139 | if (!c) | 139 | if (!c) |
140 | return -ENOMEM; | 140 | return -ENOMEM; |
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 226bf3de8edd..e87692c31be4 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -81,7 +81,7 @@ MODULE_PARM_DESC(debug, "Debug level"); | |||
81 | static char *errbuf; | 81 | static char *errbuf; |
82 | #define ERRBUF_LEN (32 * 1024) | 82 | #define ERRBUF_LEN (32 * 1024) |
83 | 83 | ||
84 | static kmem_cache_t *uhci_up_cachep; /* urb_priv */ | 84 | static struct kmem_cache *uhci_up_cachep; /* urb_priv */ |
85 | 85 | ||
86 | static void suspend_rh(struct uhci_hcd *uhci, enum uhci_rh_state new_state); | 86 | static void suspend_rh(struct uhci_hcd *uhci, enum uhci_rh_state new_state); |
87 | static void wakeup_rh(struct uhci_hcd *uhci); | 87 | static void wakeup_rh(struct uhci_hcd *uhci); |
diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c index 06115f22a4fa..30b88459ac7d 100644 --- a/drivers/usb/host/uhci-q.c +++ b/drivers/usb/host/uhci-q.c | |||
@@ -498,7 +498,7 @@ static inline struct urb_priv *uhci_alloc_urb_priv(struct uhci_hcd *uhci, | |||
498 | { | 498 | { |
499 | struct urb_priv *urbp; | 499 | struct urb_priv *urbp; |
500 | 500 | ||
501 | urbp = kmem_cache_alloc(uhci_up_cachep, SLAB_ATOMIC); | 501 | urbp = kmem_cache_alloc(uhci_up_cachep, GFP_ATOMIC); |
502 | if (!urbp) | 502 | if (!urbp) |
503 | return NULL; | 503 | return NULL; |
504 | 504 | ||
diff --git a/drivers/usb/input/acecad.c b/drivers/usb/input/acecad.c index 0096373b5f98..909138e5aa04 100644 --- a/drivers/usb/input/acecad.c +++ b/drivers/usb/input/acecad.c | |||
@@ -152,7 +152,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ | |||
152 | if (!acecad || !input_dev) | 152 | if (!acecad || !input_dev) |
153 | goto fail1; | 153 | goto fail1; |
154 | 154 | ||
155 | acecad->data = usb_buffer_alloc(dev, 8, SLAB_KERNEL, &acecad->data_dma); | 155 | acecad->data = usb_buffer_alloc(dev, 8, GFP_KERNEL, &acecad->data_dma); |
156 | if (!acecad->data) | 156 | if (!acecad->data) |
157 | goto fail1; | 157 | goto fail1; |
158 | 158 | ||
diff --git a/drivers/usb/input/aiptek.c b/drivers/usb/input/aiptek.c index bf428184608f..9f52429ce654 100644 --- a/drivers/usb/input/aiptek.c +++ b/drivers/usb/input/aiptek.c | |||
@@ -1988,7 +1988,7 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1988 | goto fail1; | 1988 | goto fail1; |
1989 | 1989 | ||
1990 | aiptek->data = usb_buffer_alloc(usbdev, AIPTEK_PACKET_LENGTH, | 1990 | aiptek->data = usb_buffer_alloc(usbdev, AIPTEK_PACKET_LENGTH, |
1991 | SLAB_ATOMIC, &aiptek->data_dma); | 1991 | GFP_ATOMIC, &aiptek->data_dma); |
1992 | if (!aiptek->data) | 1992 | if (!aiptek->data) |
1993 | goto fail1; | 1993 | goto fail1; |
1994 | 1994 | ||
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c index ff23318dc301..b724e36f7b92 100644 --- a/drivers/usb/input/ati_remote.c +++ b/drivers/usb/input/ati_remote.c | |||
@@ -592,7 +592,7 @@ static void ati_remote_irq_in(struct urb *urb) | |||
592 | __FUNCTION__, urb->status); | 592 | __FUNCTION__, urb->status); |
593 | } | 593 | } |
594 | 594 | ||
595 | retval = usb_submit_urb(urb, SLAB_ATOMIC); | 595 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
596 | if (retval) | 596 | if (retval) |
597 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", | 597 | dev_err(&ati_remote->interface->dev, "%s: usb_submit_urb()=%d\n", |
598 | __FUNCTION__, retval); | 598 | __FUNCTION__, retval); |
@@ -604,12 +604,12 @@ static void ati_remote_irq_in(struct urb *urb) | |||
604 | static int ati_remote_alloc_buffers(struct usb_device *udev, | 604 | static int ati_remote_alloc_buffers(struct usb_device *udev, |
605 | struct ati_remote *ati_remote) | 605 | struct ati_remote *ati_remote) |
606 | { | 606 | { |
607 | ati_remote->inbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, SLAB_ATOMIC, | 607 | ati_remote->inbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, GFP_ATOMIC, |
608 | &ati_remote->inbuf_dma); | 608 | &ati_remote->inbuf_dma); |
609 | if (!ati_remote->inbuf) | 609 | if (!ati_remote->inbuf) |
610 | return -1; | 610 | return -1; |
611 | 611 | ||
612 | ati_remote->outbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, SLAB_ATOMIC, | 612 | ati_remote->outbuf = usb_buffer_alloc(udev, DATA_BUFSIZE, GFP_ATOMIC, |
613 | &ati_remote->outbuf_dma); | 613 | &ati_remote->outbuf_dma); |
614 | if (!ati_remote->outbuf) | 614 | if (!ati_remote->outbuf) |
615 | return -1; | 615 | return -1; |
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 4295bab4f1e2..f1d0e1d69828 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -1079,7 +1079,7 @@ static void hid_irq_in(struct urb *urb) | |||
1079 | warn("input irq status %d received", urb->status); | 1079 | warn("input irq status %d received", urb->status); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | status = usb_submit_urb(urb, SLAB_ATOMIC); | 1082 | status = usb_submit_urb(urb, GFP_ATOMIC); |
1083 | if (status) { | 1083 | if (status) { |
1084 | clear_bit(HID_IN_RUNNING, &hid->iofl); | 1084 | clear_bit(HID_IN_RUNNING, &hid->iofl); |
1085 | if (status != -EPERM) { | 1085 | if (status != -EPERM) { |
@@ -1864,13 +1864,13 @@ static void hid_find_max_report(struct hid_device *hid, unsigned int type, int * | |||
1864 | 1864 | ||
1865 | static int hid_alloc_buffers(struct usb_device *dev, struct hid_device *hid) | 1865 | static int hid_alloc_buffers(struct usb_device *dev, struct hid_device *hid) |
1866 | { | 1866 | { |
1867 | if (!(hid->inbuf = usb_buffer_alloc(dev, hid->bufsize, SLAB_ATOMIC, &hid->inbuf_dma))) | 1867 | if (!(hid->inbuf = usb_buffer_alloc(dev, hid->bufsize, GFP_ATOMIC, &hid->inbuf_dma))) |
1868 | return -1; | 1868 | return -1; |
1869 | if (!(hid->outbuf = usb_buffer_alloc(dev, hid->bufsize, SLAB_ATOMIC, &hid->outbuf_dma))) | 1869 | if (!(hid->outbuf = usb_buffer_alloc(dev, hid->bufsize, GFP_ATOMIC, &hid->outbuf_dma))) |
1870 | return -1; | 1870 | return -1; |
1871 | if (!(hid->cr = usb_buffer_alloc(dev, sizeof(*(hid->cr)), SLAB_ATOMIC, &hid->cr_dma))) | 1871 | if (!(hid->cr = usb_buffer_alloc(dev, sizeof(*(hid->cr)), GFP_ATOMIC, &hid->cr_dma))) |
1872 | return -1; | 1872 | return -1; |
1873 | if (!(hid->ctrlbuf = usb_buffer_alloc(dev, hid->bufsize, SLAB_ATOMIC, &hid->ctrlbuf_dma))) | 1873 | if (!(hid->ctrlbuf = usb_buffer_alloc(dev, hid->bufsize, GFP_ATOMIC, &hid->ctrlbuf_dma))) |
1874 | return -1; | 1874 | return -1; |
1875 | 1875 | ||
1876 | return 0; | 1876 | return 0; |
diff --git a/drivers/usb/input/keyspan_remote.c b/drivers/usb/input/keyspan_remote.c index 50aa8108a50b..98bd323369c7 100644 --- a/drivers/usb/input/keyspan_remote.c +++ b/drivers/usb/input/keyspan_remote.c | |||
@@ -456,7 +456,7 @@ static int keyspan_probe(struct usb_interface *interface, const struct usb_devic | |||
456 | remote->in_endpoint = endpoint; | 456 | remote->in_endpoint = endpoint; |
457 | remote->toggle = -1; /* Set to -1 so we will always not match the toggle from the first remote message. */ | 457 | remote->toggle = -1; /* Set to -1 so we will always not match the toggle from the first remote message. */ |
458 | 458 | ||
459 | remote->in_buffer = usb_buffer_alloc(udev, RECV_SIZE, SLAB_ATOMIC, &remote->in_dma); | 459 | remote->in_buffer = usb_buffer_alloc(udev, RECV_SIZE, GFP_ATOMIC, &remote->in_dma); |
460 | if (!remote->in_buffer) { | 460 | if (!remote->in_buffer) { |
461 | retval = -ENOMEM; | 461 | retval = -ENOMEM; |
462 | goto fail1; | 462 | goto fail1; |
diff --git a/drivers/usb/input/mtouchusb.c b/drivers/usb/input/mtouchusb.c index 79a85d46cb13..92c4e07da4c8 100644 --- a/drivers/usb/input/mtouchusb.c +++ b/drivers/usb/input/mtouchusb.c | |||
@@ -164,7 +164,7 @@ static int mtouchusb_alloc_buffers(struct usb_device *udev, struct mtouch_usb *m | |||
164 | dbg("%s - called", __FUNCTION__); | 164 | dbg("%s - called", __FUNCTION__); |
165 | 165 | ||
166 | mtouch->data = usb_buffer_alloc(udev, MTOUCHUSB_REPORT_DATA_SIZE, | 166 | mtouch->data = usb_buffer_alloc(udev, MTOUCHUSB_REPORT_DATA_SIZE, |
167 | SLAB_ATOMIC, &mtouch->data_dma); | 167 | GFP_ATOMIC, &mtouch->data_dma); |
168 | 168 | ||
169 | if (!mtouch->data) | 169 | if (!mtouch->data) |
170 | return -1; | 170 | return -1; |
diff --git a/drivers/usb/input/powermate.c b/drivers/usb/input/powermate.c index 0bf91778c40d..fea97e5437f8 100644 --- a/drivers/usb/input/powermate.c +++ b/drivers/usb/input/powermate.c | |||
@@ -277,12 +277,12 @@ static int powermate_input_event(struct input_dev *dev, unsigned int type, unsig | |||
277 | static int powermate_alloc_buffers(struct usb_device *udev, struct powermate_device *pm) | 277 | static int powermate_alloc_buffers(struct usb_device *udev, struct powermate_device *pm) |
278 | { | 278 | { |
279 | pm->data = usb_buffer_alloc(udev, POWERMATE_PAYLOAD_SIZE_MAX, | 279 | pm->data = usb_buffer_alloc(udev, POWERMATE_PAYLOAD_SIZE_MAX, |
280 | SLAB_ATOMIC, &pm->data_dma); | 280 | GFP_ATOMIC, &pm->data_dma); |
281 | if (!pm->data) | 281 | if (!pm->data) |
282 | return -1; | 282 | return -1; |
283 | 283 | ||
284 | pm->configcr = usb_buffer_alloc(udev, sizeof(*(pm->configcr)), | 284 | pm->configcr = usb_buffer_alloc(udev, sizeof(*(pm->configcr)), |
285 | SLAB_ATOMIC, &pm->configcr_dma); | 285 | GFP_ATOMIC, &pm->configcr_dma); |
286 | if (!pm->configcr) | 286 | if (!pm->configcr) |
287 | return -1; | 287 | return -1; |
288 | 288 | ||
diff --git a/drivers/usb/input/touchkitusb.c b/drivers/usb/input/touchkitusb.c index 05c0d1ca39ab..2a314b065922 100644 --- a/drivers/usb/input/touchkitusb.c +++ b/drivers/usb/input/touchkitusb.c | |||
@@ -248,7 +248,7 @@ static int touchkit_alloc_buffers(struct usb_device *udev, | |||
248 | struct touchkit_usb *touchkit) | 248 | struct touchkit_usb *touchkit) |
249 | { | 249 | { |
250 | touchkit->data = usb_buffer_alloc(udev, TOUCHKIT_REPORT_DATA_SIZE, | 250 | touchkit->data = usb_buffer_alloc(udev, TOUCHKIT_REPORT_DATA_SIZE, |
251 | SLAB_ATOMIC, &touchkit->data_dma); | 251 | GFP_ATOMIC, &touchkit->data_dma); |
252 | 252 | ||
253 | if (!touchkit->data) | 253 | if (!touchkit->data) |
254 | return -1; | 254 | return -1; |
diff --git a/drivers/usb/input/usbkbd.c b/drivers/usb/input/usbkbd.c index dac88640eab6..8505824848f6 100644 --- a/drivers/usb/input/usbkbd.c +++ b/drivers/usb/input/usbkbd.c | |||
@@ -122,7 +122,7 @@ static void usb_kbd_irq(struct urb *urb) | |||
122 | memcpy(kbd->old, kbd->new, 8); | 122 | memcpy(kbd->old, kbd->new, 8); |
123 | 123 | ||
124 | resubmit: | 124 | resubmit: |
125 | i = usb_submit_urb (urb, SLAB_ATOMIC); | 125 | i = usb_submit_urb (urb, GFP_ATOMIC); |
126 | if (i) | 126 | if (i) |
127 | err ("can't resubmit intr, %s-%s/input0, status %d", | 127 | err ("can't resubmit intr, %s-%s/input0, status %d", |
128 | kbd->usbdev->bus->bus_name, | 128 | kbd->usbdev->bus->bus_name, |
@@ -196,11 +196,11 @@ static int usb_kbd_alloc_mem(struct usb_device *dev, struct usb_kbd *kbd) | |||
196 | return -1; | 196 | return -1; |
197 | if (!(kbd->led = usb_alloc_urb(0, GFP_KERNEL))) | 197 | if (!(kbd->led = usb_alloc_urb(0, GFP_KERNEL))) |
198 | return -1; | 198 | return -1; |
199 | if (!(kbd->new = usb_buffer_alloc(dev, 8, SLAB_ATOMIC, &kbd->new_dma))) | 199 | if (!(kbd->new = usb_buffer_alloc(dev, 8, GFP_ATOMIC, &kbd->new_dma))) |
200 | return -1; | 200 | return -1; |
201 | if (!(kbd->cr = usb_buffer_alloc(dev, sizeof(struct usb_ctrlrequest), SLAB_ATOMIC, &kbd->cr_dma))) | 201 | if (!(kbd->cr = usb_buffer_alloc(dev, sizeof(struct usb_ctrlrequest), GFP_ATOMIC, &kbd->cr_dma))) |
202 | return -1; | 202 | return -1; |
203 | if (!(kbd->leds = usb_buffer_alloc(dev, 1, SLAB_ATOMIC, &kbd->leds_dma))) | 203 | if (!(kbd->leds = usb_buffer_alloc(dev, 1, GFP_ATOMIC, &kbd->leds_dma))) |
204 | return -1; | 204 | return -1; |
205 | 205 | ||
206 | return 0; | 206 | return 0; |
diff --git a/drivers/usb/input/usbmouse.c b/drivers/usb/input/usbmouse.c index 68a55642c082..64a33e420cfb 100644 --- a/drivers/usb/input/usbmouse.c +++ b/drivers/usb/input/usbmouse.c | |||
@@ -86,7 +86,7 @@ static void usb_mouse_irq(struct urb *urb) | |||
86 | 86 | ||
87 | input_sync(dev); | 87 | input_sync(dev); |
88 | resubmit: | 88 | resubmit: |
89 | status = usb_submit_urb (urb, SLAB_ATOMIC); | 89 | status = usb_submit_urb (urb, GFP_ATOMIC); |
90 | if (status) | 90 | if (status) |
91 | err ("can't resubmit intr, %s-%s/input0, status %d", | 91 | err ("can't resubmit intr, %s-%s/input0, status %d", |
92 | mouse->usbdev->bus->bus_name, | 92 | mouse->usbdev->bus->bus_name, |
@@ -137,7 +137,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i | |||
137 | if (!mouse || !input_dev) | 137 | if (!mouse || !input_dev) |
138 | goto fail1; | 138 | goto fail1; |
139 | 139 | ||
140 | mouse->data = usb_buffer_alloc(dev, 8, SLAB_ATOMIC, &mouse->data_dma); | 140 | mouse->data = usb_buffer_alloc(dev, 8, GFP_ATOMIC, &mouse->data_dma); |
141 | if (!mouse->data) | 141 | if (!mouse->data) |
142 | goto fail1; | 142 | goto fail1; |
143 | 143 | ||
diff --git a/drivers/usb/input/usbtouchscreen.c b/drivers/usb/input/usbtouchscreen.c index 49704d4ed0e2..7f3c57da9bc0 100644 --- a/drivers/usb/input/usbtouchscreen.c +++ b/drivers/usb/input/usbtouchscreen.c | |||
@@ -680,7 +680,7 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
680 | type->process_pkt = usbtouch_process_pkt; | 680 | type->process_pkt = usbtouch_process_pkt; |
681 | 681 | ||
682 | usbtouch->data = usb_buffer_alloc(udev, type->rept_size, | 682 | usbtouch->data = usb_buffer_alloc(udev, type->rept_size, |
683 | SLAB_KERNEL, &usbtouch->data_dma); | 683 | GFP_KERNEL, &usbtouch->data_dma); |
684 | if (!usbtouch->data) | 684 | if (!usbtouch->data) |
685 | goto out_free; | 685 | goto out_free; |
686 | 686 | ||
diff --git a/drivers/usb/input/xpad.c b/drivers/usb/input/xpad.c index df97e5c803f9..e4bc76ebc835 100644 --- a/drivers/usb/input/xpad.c +++ b/drivers/usb/input/xpad.c | |||
@@ -325,7 +325,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id | |||
325 | goto fail1; | 325 | goto fail1; |
326 | 326 | ||
327 | xpad->idata = usb_buffer_alloc(udev, XPAD_PKT_LEN, | 327 | xpad->idata = usb_buffer_alloc(udev, XPAD_PKT_LEN, |
328 | SLAB_ATOMIC, &xpad->idata_dma); | 328 | GFP_ATOMIC, &xpad->idata_dma); |
329 | if (!xpad->idata) | 329 | if (!xpad->idata) |
330 | goto fail1; | 330 | goto fail1; |
331 | 331 | ||
diff --git a/drivers/usb/input/yealink.c b/drivers/usb/input/yealink.c index 2268ca311ade..caff8e6d7448 100644 --- a/drivers/usb/input/yealink.c +++ b/drivers/usb/input/yealink.c | |||
@@ -874,17 +874,17 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
874 | 874 | ||
875 | /* allocate usb buffers */ | 875 | /* allocate usb buffers */ |
876 | yld->irq_data = usb_buffer_alloc(udev, USB_PKT_LEN, | 876 | yld->irq_data = usb_buffer_alloc(udev, USB_PKT_LEN, |
877 | SLAB_ATOMIC, &yld->irq_dma); | 877 | GFP_ATOMIC, &yld->irq_dma); |
878 | if (yld->irq_data == NULL) | 878 | if (yld->irq_data == NULL) |
879 | return usb_cleanup(yld, -ENOMEM); | 879 | return usb_cleanup(yld, -ENOMEM); |
880 | 880 | ||
881 | yld->ctl_data = usb_buffer_alloc(udev, USB_PKT_LEN, | 881 | yld->ctl_data = usb_buffer_alloc(udev, USB_PKT_LEN, |
882 | SLAB_ATOMIC, &yld->ctl_dma); | 882 | GFP_ATOMIC, &yld->ctl_dma); |
883 | if (!yld->ctl_data) | 883 | if (!yld->ctl_data) |
884 | return usb_cleanup(yld, -ENOMEM); | 884 | return usb_cleanup(yld, -ENOMEM); |
885 | 885 | ||
886 | yld->ctl_req = usb_buffer_alloc(udev, sizeof(*(yld->ctl_req)), | 886 | yld->ctl_req = usb_buffer_alloc(udev, sizeof(*(yld->ctl_req)), |
887 | SLAB_ATOMIC, &yld->ctl_req_dma); | 887 | GFP_ATOMIC, &yld->ctl_req_dma); |
888 | if (yld->ctl_req == NULL) | 888 | if (yld->ctl_req == NULL) |
889 | return usb_cleanup(yld, -ENOMEM); | 889 | return usb_cleanup(yld, -ENOMEM); |
890 | 890 | ||
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..fb321864a92d 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -213,7 +213,7 @@ static struct urb *simple_alloc_urb ( | |||
213 | 213 | ||
214 | if (bytes < 0) | 214 | if (bytes < 0) |
215 | return NULL; | 215 | return NULL; |
216 | urb = usb_alloc_urb (0, SLAB_KERNEL); | 216 | urb = usb_alloc_urb (0, GFP_KERNEL); |
217 | if (!urb) | 217 | if (!urb) |
218 | return urb; | 218 | return urb; |
219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); | 219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); |
@@ -223,7 +223,7 @@ static struct urb *simple_alloc_urb ( | |||
223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; | 223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; |
224 | if (usb_pipein (pipe)) | 224 | if (usb_pipein (pipe)) |
225 | urb->transfer_flags |= URB_SHORT_NOT_OK; | 225 | urb->transfer_flags |= URB_SHORT_NOT_OK; |
226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
227 | &urb->transfer_dma); | 227 | &urb->transfer_dma); |
228 | if (!urb->transfer_buffer) { | 228 | if (!urb->transfer_buffer) { |
229 | usb_free_urb (urb); | 229 | usb_free_urb (urb); |
@@ -315,7 +315,7 @@ static int simple_io ( | |||
315 | init_completion (&completion); | 315 | init_completion (&completion); |
316 | if (usb_pipeout (urb->pipe)) | 316 | if (usb_pipeout (urb->pipe)) |
317 | simple_fill_buf (urb); | 317 | simple_fill_buf (urb); |
318 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) | 318 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) |
319 | break; | 319 | break; |
320 | 320 | ||
321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ | 321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ |
@@ -374,7 +374,7 @@ alloc_sglist (int nents, int max, int vary) | |||
374 | unsigned i; | 374 | unsigned i; |
375 | unsigned size = max; | 375 | unsigned size = max; |
376 | 376 | ||
377 | sg = kmalloc (nents * sizeof *sg, SLAB_KERNEL); | 377 | sg = kmalloc (nents * sizeof *sg, GFP_KERNEL); |
378 | if (!sg) | 378 | if (!sg) |
379 | return NULL; | 379 | return NULL; |
380 | 380 | ||
@@ -382,7 +382,7 @@ alloc_sglist (int nents, int max, int vary) | |||
382 | char *buf; | 382 | char *buf; |
383 | unsigned j; | 383 | unsigned j; |
384 | 384 | ||
385 | buf = kzalloc (size, SLAB_KERNEL); | 385 | buf = kzalloc (size, GFP_KERNEL); |
386 | if (!buf) { | 386 | if (!buf) { |
387 | free_sglist (sg, i); | 387 | free_sglist (sg, i); |
388 | return NULL; | 388 | return NULL; |
@@ -428,7 +428,7 @@ static int perform_sglist ( | |||
428 | (udev->speed == USB_SPEED_HIGH) | 428 | (udev->speed == USB_SPEED_HIGH) |
429 | ? (INTERRUPT_RATE << 3) | 429 | ? (INTERRUPT_RATE << 3) |
430 | : INTERRUPT_RATE, | 430 | : INTERRUPT_RATE, |
431 | sg, nents, 0, SLAB_KERNEL); | 431 | sg, nents, 0, GFP_KERNEL); |
432 | 432 | ||
433 | if (retval) | 433 | if (retval) |
434 | break; | 434 | break; |
@@ -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; |
@@ -855,7 +855,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
855 | * as with bulk/intr sglists, sglen is the queue depth; it also | 855 | * as with bulk/intr sglists, sglen is the queue depth; it also |
856 | * controls which subtests run (more tests than sglen) or rerun. | 856 | * controls which subtests run (more tests than sglen) or rerun. |
857 | */ | 857 | */ |
858 | urb = kcalloc(param->sglen, sizeof(struct urb *), SLAB_KERNEL); | 858 | urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); |
859 | if (!urb) | 859 | if (!urb) |
860 | return -ENOMEM; | 860 | return -ENOMEM; |
861 | for (i = 0; i < param->sglen; i++) { | 861 | for (i = 0; i < param->sglen; i++) { |
@@ -981,7 +981,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
981 | if (!u) | 981 | if (!u) |
982 | goto cleanup; | 982 | goto cleanup; |
983 | 983 | ||
984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, SLAB_KERNEL, | 984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, GFP_KERNEL, |
985 | &u->setup_dma); | 985 | &u->setup_dma); |
986 | if (!reqp) | 986 | if (!reqp) |
987 | goto cleanup; | 987 | goto cleanup; |
@@ -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); |
@@ -1067,7 +1067,7 @@ static int unlink1 (struct usbtest_dev *dev, int pipe, int size, int async) | |||
1067 | * FIXME want additional tests for when endpoint is STALLing | 1067 | * FIXME want additional tests for when endpoint is STALLing |
1068 | * due to errors, or is just NAKing requests. | 1068 | * due to errors, or is just NAKing requests. |
1069 | */ | 1069 | */ |
1070 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) { | 1070 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) { |
1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); | 1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); |
1072 | return retval; | 1072 | return retval; |
1073 | } | 1073 | } |
@@ -1251,7 +1251,7 @@ static int ctrl_out (struct usbtest_dev *dev, | |||
1251 | if (length < 1 || length > 0xffff || vary >= length) | 1251 | if (length < 1 || length > 0xffff || vary >= length) |
1252 | return -EINVAL; | 1252 | return -EINVAL; |
1253 | 1253 | ||
1254 | buf = kmalloc(length, SLAB_KERNEL); | 1254 | buf = kmalloc(length, GFP_KERNEL); |
1255 | if (!buf) | 1255 | if (!buf) |
1256 | return -ENOMEM; | 1256 | return -ENOMEM; |
1257 | 1257 | ||
@@ -1403,7 +1403,7 @@ static struct urb *iso_alloc_urb ( | |||
1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); | 1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); |
1404 | packets = (bytes + maxp - 1) / maxp; | 1404 | packets = (bytes + maxp - 1) / maxp; |
1405 | 1405 | ||
1406 | urb = usb_alloc_urb (packets, SLAB_KERNEL); | 1406 | urb = usb_alloc_urb (packets, GFP_KERNEL); |
1407 | if (!urb) | 1407 | if (!urb) |
1408 | return urb; | 1408 | return urb; |
1409 | urb->dev = udev; | 1409 | urb->dev = udev; |
@@ -1411,7 +1411,7 @@ static struct urb *iso_alloc_urb ( | |||
1411 | 1411 | ||
1412 | urb->number_of_packets = packets; | 1412 | urb->number_of_packets = packets; |
1413 | urb->transfer_buffer_length = bytes; | 1413 | urb->transfer_buffer_length = bytes; |
1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
1415 | &urb->transfer_dma); | 1415 | &urb->transfer_dma); |
1416 | if (!urb->transfer_buffer) { | 1416 | if (!urb->transfer_buffer) { |
1417 | usb_free_urb (urb); | 1417 | usb_free_urb (urb); |
@@ -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) { |
@@ -1900,7 +1900,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
1900 | } | 1900 | } |
1901 | #endif | 1901 | #endif |
1902 | 1902 | ||
1903 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1903 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1904 | if (!dev) | 1904 | if (!dev) |
1905 | return -ENOMEM; | 1905 | return -ENOMEM; |
1906 | info = (struct usbtest_info *) id->driver_info; | 1906 | info = (struct usbtest_info *) id->driver_info; |
@@ -1910,7 +1910,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
1910 | dev->intf = intf; | 1910 | dev->intf = intf; |
1911 | 1911 | ||
1912 | /* cacheline-aligned scratch for i/o */ | 1912 | /* cacheline-aligned scratch for i/o */ |
1913 | if ((dev->buf = kmalloc (TBUF_SIZE, SLAB_KERNEL)) == NULL) { | 1913 | if ((dev->buf = kmalloc (TBUF_SIZE, GFP_KERNEL)) == NULL) { |
1914 | kfree (dev); | 1914 | kfree (dev); |
1915 | return -ENOMEM; | 1915 | return -ENOMEM; |
1916 | } | 1916 | } |
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index 7a2346c53284..05cf2c9a8f84 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -50,7 +50,7 @@ struct mon_event_text { | |||
50 | 50 | ||
51 | #define SLAB_NAME_SZ 30 | 51 | #define SLAB_NAME_SZ 30 |
52 | struct mon_reader_text { | 52 | struct mon_reader_text { |
53 | kmem_cache_t *e_slab; | 53 | struct kmem_cache *e_slab; |
54 | int nevents; | 54 | int nevents; |
55 | struct list_head e_list; | 55 | struct list_head e_list; |
56 | struct mon_reader r; /* In C, parent class can be placed anywhere */ | 56 | struct mon_reader r; /* In C, parent class can be placed anywhere */ |
@@ -63,7 +63,7 @@ struct mon_reader_text { | |||
63 | char slab_name[SLAB_NAME_SZ]; | 63 | char slab_name[SLAB_NAME_SZ]; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | static void mon_text_ctor(void *, kmem_cache_t *, unsigned long); | 66 | static void mon_text_ctor(void *, struct kmem_cache *, unsigned long); |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * mon_text_submit | 69 | * mon_text_submit |
@@ -147,7 +147,7 @@ static void mon_text_event(struct mon_reader_text *rp, struct urb *urb, | |||
147 | stamp = mon_get_timestamp(); | 147 | stamp = mon_get_timestamp(); |
148 | 148 | ||
149 | if (rp->nevents >= EVENT_MAX || | 149 | if (rp->nevents >= EVENT_MAX || |
150 | (ep = kmem_cache_alloc(rp->e_slab, SLAB_ATOMIC)) == NULL) { | 150 | (ep = kmem_cache_alloc(rp->e_slab, GFP_ATOMIC)) == NULL) { |
151 | rp->r.m_bus->cnt_text_lost++; | 151 | rp->r.m_bus->cnt_text_lost++; |
152 | return; | 152 | return; |
153 | } | 153 | } |
@@ -188,7 +188,7 @@ static void mon_text_error(void *data, struct urb *urb, int error) | |||
188 | struct mon_event_text *ep; | 188 | struct mon_event_text *ep; |
189 | 189 | ||
190 | if (rp->nevents >= EVENT_MAX || | 190 | if (rp->nevents >= EVENT_MAX || |
191 | (ep = kmem_cache_alloc(rp->e_slab, SLAB_ATOMIC)) == NULL) { | 191 | (ep = kmem_cache_alloc(rp->e_slab, GFP_ATOMIC)) == NULL) { |
192 | rp->r.m_bus->cnt_text_lost++; | 192 | rp->r.m_bus->cnt_text_lost++; |
193 | return; | 193 | return; |
194 | } | 194 | } |
@@ -450,7 +450,7 @@ const struct file_operations mon_fops_text = { | |||
450 | /* | 450 | /* |
451 | * Slab interface: constructor. | 451 | * Slab interface: constructor. |
452 | */ | 452 | */ |
453 | static void mon_text_ctor(void *mem, kmem_cache_t *slab, unsigned long sflags) | 453 | static void mon_text_ctor(void *mem, struct kmem_cache *slab, unsigned long sflags) |
454 | { | 454 | { |
455 | /* | 455 | /* |
456 | * Nothing to initialize. No, really! | 456 | * Nothing to initialize. No, really! |
diff --git a/drivers/usb/net/catc.c b/drivers/usb/net/catc.c index 907b820a5faf..4852012735f6 100644 --- a/drivers/usb/net/catc.c +++ b/drivers/usb/net/catc.c | |||
@@ -345,7 +345,7 @@ static void catc_irq_done(struct urb *urb) | |||
345 | } | 345 | } |
346 | } | 346 | } |
347 | resubmit: | 347 | resubmit: |
348 | status = usb_submit_urb (urb, SLAB_ATOMIC); | 348 | status = usb_submit_urb (urb, GFP_ATOMIC); |
349 | if (status) | 349 | if (status) |
350 | err ("can't resubmit intr, %s-%s, status %d", | 350 | err ("can't resubmit intr, %s-%s, status %d", |
351 | catc->usbdev->bus->bus_name, | 351 | catc->usbdev->bus->bus_name, |
diff --git a/drivers/usb/net/net1080.c b/drivers/usb/net/net1080.c index a77410562e12..493635954513 100644 --- a/drivers/usb/net/net1080.c +++ b/drivers/usb/net/net1080.c | |||
@@ -383,7 +383,7 @@ static void nc_ensure_sync(struct usbnet *dev) | |||
383 | int status; | 383 | int status; |
384 | 384 | ||
385 | /* Send a flush */ | 385 | /* Send a flush */ |
386 | urb = usb_alloc_urb(0, SLAB_ATOMIC); | 386 | urb = usb_alloc_urb(0, GFP_ATOMIC); |
387 | if (!urb) | 387 | if (!urb) |
388 | return; | 388 | return; |
389 | 389 | ||
diff --git a/drivers/usb/net/pegasus.c b/drivers/usb/net/pegasus.c index b5690b3834e3..d48c024cff59 100644 --- a/drivers/usb/net/pegasus.c +++ b/drivers/usb/net/pegasus.c | |||
@@ -856,7 +856,7 @@ static void intr_callback(struct urb *urb) | |||
856 | pegasus->stats.rx_missed_errors += ((d[3] & 0x7f) << 8) | d[4]; | 856 | pegasus->stats.rx_missed_errors += ((d[3] & 0x7f) << 8) | d[4]; |
857 | } | 857 | } |
858 | 858 | ||
859 | status = usb_submit_urb(urb, SLAB_ATOMIC); | 859 | status = usb_submit_urb(urb, GFP_ATOMIC); |
860 | if (status == -ENODEV) | 860 | if (status == -ENODEV) |
861 | netif_device_detach(pegasus->net); | 861 | netif_device_detach(pegasus->net); |
862 | if (status && netif_msg_timer(pegasus)) | 862 | if (status && netif_msg_timer(pegasus)) |
diff --git a/drivers/usb/net/rndis_host.c b/drivers/usb/net/rndis_host.c index c2a28d88ef3c..99f26b3e502f 100644 --- a/drivers/usb/net/rndis_host.c +++ b/drivers/usb/net/rndis_host.c | |||
@@ -469,7 +469,7 @@ static void rndis_unbind(struct usbnet *dev, struct usb_interface *intf) | |||
469 | struct rndis_halt *halt; | 469 | struct rndis_halt *halt; |
470 | 470 | ||
471 | /* try to clear any rndis state/activity (no i/o from stack!) */ | 471 | /* try to clear any rndis state/activity (no i/o from stack!) */ |
472 | halt = kcalloc(1, sizeof *halt, SLAB_KERNEL); | 472 | halt = kcalloc(1, sizeof *halt, GFP_KERNEL); |
473 | if (halt) { | 473 | if (halt) { |
474 | halt->msg_type = RNDIS_MSG_HALT; | 474 | halt->msg_type = RNDIS_MSG_HALT; |
475 | halt->msg_len = ccpu2(sizeof *halt); | 475 | halt->msg_len = ccpu2(sizeof *halt); |
diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index 72171f94ded4..c54235f73cb6 100644 --- a/drivers/usb/net/rtl8150.c +++ b/drivers/usb/net/rtl8150.c | |||
@@ -587,7 +587,7 @@ static void intr_callback(struct urb *urb) | |||
587 | } | 587 | } |
588 | 588 | ||
589 | resubmit: | 589 | resubmit: |
590 | status = usb_submit_urb (urb, SLAB_ATOMIC); | 590 | status = usb_submit_urb (urb, GFP_ATOMIC); |
591 | if (status == -ENODEV) | 591 | if (status == -ENODEV) |
592 | netif_device_detach(dev->netdev); | 592 | netif_device_detach(dev->netdev); |
593 | else if (status) | 593 | else if (status) |
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 327f97555679..6e39e9988259 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c | |||
@@ -179,9 +179,9 @@ static int init_status (struct usbnet *dev, struct usb_interface *intf) | |||
179 | period = max ((int) dev->status->desc.bInterval, | 179 | period = max ((int) dev->status->desc.bInterval, |
180 | (dev->udev->speed == USB_SPEED_HIGH) ? 7 : 3); | 180 | (dev->udev->speed == USB_SPEED_HIGH) ? 7 : 3); |
181 | 181 | ||
182 | buf = kmalloc (maxp, SLAB_KERNEL); | 182 | buf = kmalloc (maxp, GFP_KERNEL); |
183 | if (buf) { | 183 | if (buf) { |
184 | dev->interrupt = usb_alloc_urb (0, SLAB_KERNEL); | 184 | dev->interrupt = usb_alloc_urb (0, GFP_KERNEL); |
185 | if (!dev->interrupt) { | 185 | if (!dev->interrupt) { |
186 | kfree (buf); | 186 | kfree (buf); |
187 | return -ENOMEM; | 187 | return -ENOMEM; |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 82cd15b894b0..70f93b18292f 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -363,7 +363,7 @@ static int mos7720_open(struct usb_serial_port *port, struct file * filp) | |||
363 | 363 | ||
364 | /* Initialising the write urb pool */ | 364 | /* Initialising the write urb pool */ |
365 | for (j = 0; j < NUM_URBS; ++j) { | 365 | for (j = 0; j < NUM_URBS; ++j) { |
366 | urb = usb_alloc_urb(0,SLAB_ATOMIC); | 366 | urb = usb_alloc_urb(0,GFP_ATOMIC); |
367 | mos7720_port->write_urb_pool[j] = urb; | 367 | mos7720_port->write_urb_pool[j] = urb; |
368 | 368 | ||
369 | if (urb == NULL) { | 369 | if (urb == NULL) { |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 02c89e10b2cf..5432c6340086 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -826,7 +826,7 @@ static int mos7840_open(struct usb_serial_port *port, struct file *filp) | |||
826 | 826 | ||
827 | /* Initialising the write urb pool */ | 827 | /* Initialising the write urb pool */ |
828 | for (j = 0; j < NUM_URBS; ++j) { | 828 | for (j = 0; j < NUM_URBS; ++j) { |
829 | urb = usb_alloc_urb(0, SLAB_ATOMIC); | 829 | urb = usb_alloc_urb(0, GFP_ATOMIC); |
830 | mos7840_port->write_urb_pool[j] = urb; | 830 | mos7840_port->write_urb_pool[j] = urb; |
831 | 831 | ||
832 | if (urb == NULL) { | 832 | if (urb == NULL) { |
@@ -2786,7 +2786,7 @@ static int mos7840_startup(struct usb_serial *serial) | |||
2786 | i + 1, status); | 2786 | i + 1, status); |
2787 | 2787 | ||
2788 | } | 2788 | } |
2789 | mos7840_port->control_urb = usb_alloc_urb(0, SLAB_ATOMIC); | 2789 | mos7840_port->control_urb = usb_alloc_urb(0, GFP_ATOMIC); |
2790 | mos7840_port->ctrl_buf = kmalloc(16, GFP_KERNEL); | 2790 | mos7840_port->ctrl_buf = kmalloc(16, GFP_KERNEL); |
2791 | 2791 | ||
2792 | } | 2792 | } |
diff --git a/drivers/usb/storage/onetouch.c b/drivers/usb/storage/onetouch.c index 3a158d58441f..e565d3d2ab29 100644 --- a/drivers/usb/storage/onetouch.c +++ b/drivers/usb/storage/onetouch.c | |||
@@ -76,7 +76,7 @@ static void usb_onetouch_irq(struct urb *urb) | |||
76 | input_sync(dev); | 76 | input_sync(dev); |
77 | 77 | ||
78 | resubmit: | 78 | resubmit: |
79 | status = usb_submit_urb (urb, SLAB_ATOMIC); | 79 | status = usb_submit_urb (urb, GFP_ATOMIC); |
80 | if (status) | 80 | if (status) |
81 | err ("can't resubmit intr, %s-%s/input0, status %d", | 81 | err ("can't resubmit intr, %s-%s/input0, status %d", |
82 | onetouch->udev->bus->bus_name, | 82 | onetouch->udev->bus->bus_name, |
@@ -154,7 +154,7 @@ int onetouch_connect_input(struct us_data *ss) | |||
154 | goto fail1; | 154 | goto fail1; |
155 | 155 | ||
156 | onetouch->data = usb_buffer_alloc(udev, ONETOUCH_PKT_LEN, | 156 | onetouch->data = usb_buffer_alloc(udev, ONETOUCH_PKT_LEN, |
157 | SLAB_ATOMIC, &onetouch->data_dma); | 157 | GFP_ATOMIC, &onetouch->data_dma); |
158 | if (!onetouch->data) | 158 | if (!onetouch->data) |
159 | goto fail1; | 159 | goto fail1; |
160 | 160 | ||
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c index 47644b5b6155..323293a3e61f 100644 --- a/drivers/usb/storage/transport.c +++ b/drivers/usb/storage/transport.c | |||
@@ -427,7 +427,7 @@ static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, | |||
427 | US_DEBUGP("%s: xfer %u bytes, %d entries\n", __FUNCTION__, | 427 | US_DEBUGP("%s: xfer %u bytes, %d entries\n", __FUNCTION__, |
428 | length, num_sg); | 428 | length, num_sg); |
429 | result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0, | 429 | result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0, |
430 | sg, num_sg, length, SLAB_NOIO); | 430 | sg, num_sg, length, GFP_NOIO); |
431 | if (result) { | 431 | if (result) { |
432 | US_DEBUGP("usb_sg_init returned %d\n", result); | 432 | US_DEBUGP("usb_sg_init returned %d\n", result); |
433 | return USB_STOR_XFER_ERROR; | 433 | return USB_STOR_XFER_ERROR; |
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index b401084b3d22..70644506651f 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -49,7 +49,7 @@ | |||
49 | 49 | ||
50 | #include <linux/sched.h> | 50 | #include <linux/sched.h> |
51 | #include <linux/errno.h> | 51 | #include <linux/errno.h> |
52 | #include <linux/suspend.h> | 52 | #include <linux/freezer.h> |
53 | #include <linux/module.h> | 53 | #include <linux/module.h> |
54 | #include <linux/init.h> | 54 | #include <linux/init.h> |
55 | #include <linux/slab.h> | 55 | #include <linux/slab.h> |