diff options
Diffstat (limited to 'drivers/char/watchdog/pcwd_usb.c')
-rw-r--r-- | drivers/char/watchdog/pcwd_usb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/char/watchdog/pcwd_usb.c b/drivers/char/watchdog/pcwd_usb.c index b7ae73dcdd08..61138726b501 100644 --- a/drivers/char/watchdog/pcwd_usb.c +++ b/drivers/char/watchdog/pcwd_usb.c | |||
@@ -158,7 +158,7 @@ static struct usb_driver usb_pcwd_driver = { | |||
158 | }; | 158 | }; |
159 | 159 | ||
160 | 160 | ||
161 | static void usb_pcwd_intr_done(struct urb *urb, struct pt_regs *regs) | 161 | static void usb_pcwd_intr_done(struct urb *urb) |
162 | { | 162 | { |
163 | struct usb_pcwd_private *usb_pcwd = (struct usb_pcwd_private *)urb->context; | 163 | struct usb_pcwd_private *usb_pcwd = (struct usb_pcwd_private *)urb->context; |
164 | unsigned char *data = usb_pcwd->intr_buffer; | 164 | unsigned char *data = usb_pcwd->intr_buffer; |
@@ -445,7 +445,7 @@ static int usb_pcwd_ioctl(struct inode *inode, struct file *file, | |||
445 | } | 445 | } |
446 | 446 | ||
447 | default: | 447 | default: |
448 | return -ENOIOCTLCMD; | 448 | return -ENOTTY; |
449 | } | 449 | } |
450 | } | 450 | } |
451 | 451 | ||
@@ -561,8 +561,7 @@ static struct notifier_block usb_pcwd_notifier = { | |||
561 | */ | 561 | */ |
562 | static inline void usb_pcwd_delete (struct usb_pcwd_private *usb_pcwd) | 562 | static inline void usb_pcwd_delete (struct usb_pcwd_private *usb_pcwd) |
563 | { | 563 | { |
564 | if (usb_pcwd->intr_urb != NULL) | 564 | usb_free_urb(usb_pcwd->intr_urb); |
565 | usb_free_urb (usb_pcwd->intr_urb); | ||
566 | if (usb_pcwd->intr_buffer != NULL) | 565 | if (usb_pcwd->intr_buffer != NULL) |
567 | usb_buffer_free(usb_pcwd->udev, usb_pcwd->intr_size, | 566 | usb_buffer_free(usb_pcwd->udev, usb_pcwd->intr_size, |
568 | usb_pcwd->intr_buffer, usb_pcwd->intr_dma); | 567 | usb_pcwd->intr_buffer, usb_pcwd->intr_dma); |
@@ -635,7 +634,7 @@ static int usb_pcwd_probe(struct usb_interface *interface, const struct usb_devi | |||
635 | usb_pcwd->intr_size = (le16_to_cpu(endpoint->wMaxPacketSize) > 8 ? le16_to_cpu(endpoint->wMaxPacketSize) : 8); | 634 | usb_pcwd->intr_size = (le16_to_cpu(endpoint->wMaxPacketSize) > 8 ? le16_to_cpu(endpoint->wMaxPacketSize) : 8); |
636 | 635 | ||
637 | /* set up the memory buffer's */ | 636 | /* set up the memory buffer's */ |
638 | if (!(usb_pcwd->intr_buffer = usb_buffer_alloc(udev, usb_pcwd->intr_size, SLAB_ATOMIC, &usb_pcwd->intr_dma))) { | 637 | if (!(usb_pcwd->intr_buffer = usb_buffer_alloc(udev, usb_pcwd->intr_size, GFP_ATOMIC, &usb_pcwd->intr_dma))) { |
639 | printk(KERN_ERR PFX "Out of memory\n"); | 638 | printk(KERN_ERR PFX "Out of memory\n"); |
640 | goto error; | 639 | goto error; |
641 | } | 640 | } |