diff options
Diffstat (limited to 'drivers/usb/usb-skeleton.c')
-rw-r--r-- | drivers/usb/usb-skeleton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index c815a40e167f..73e6a66d95a7 100644 --- a/drivers/usb/usb-skeleton.c +++ b/drivers/usb/usb-skeleton.c | |||
@@ -88,7 +88,7 @@ static int skel_open(struct inode *inode, struct file *file) | |||
88 | interface = usb_find_interface(&skel_driver, subminor); | 88 | interface = usb_find_interface(&skel_driver, subminor); |
89 | if (!interface) { | 89 | if (!interface) { |
90 | err ("%s - error, can't find device for minor %d", | 90 | err ("%s - error, can't find device for minor %d", |
91 | __FUNCTION__, subminor); | 91 | __func__, subminor); |
92 | retval = -ENODEV; | 92 | retval = -ENODEV; |
93 | goto exit; | 93 | goto exit; |
94 | } | 94 | } |
@@ -220,7 +220,7 @@ static void skel_write_bulk_callback(struct urb *urb) | |||
220 | urb->status == -ECONNRESET || | 220 | urb->status == -ECONNRESET || |
221 | urb->status == -ESHUTDOWN)) | 221 | urb->status == -ESHUTDOWN)) |
222 | err("%s - nonzero write bulk status received: %d", | 222 | err("%s - nonzero write bulk status received: %d", |
223 | __FUNCTION__, urb->status); | 223 | __func__, urb->status); |
224 | 224 | ||
225 | spin_lock(&dev->err_lock); | 225 | spin_lock(&dev->err_lock); |
226 | dev->errors = urb->status; | 226 | dev->errors = urb->status; |
@@ -301,7 +301,7 @@ static ssize_t skel_write(struct file *file, const char *user_buffer, size_t cou | |||
301 | retval = usb_submit_urb(urb, GFP_KERNEL); | 301 | retval = usb_submit_urb(urb, GFP_KERNEL); |
302 | mutex_unlock(&dev->io_mutex); | 302 | mutex_unlock(&dev->io_mutex); |
303 | if (retval) { | 303 | if (retval) { |
304 | err("%s - failed submitting write urb, error %d", __FUNCTION__, retval); | 304 | err("%s - failed submitting write urb, error %d", __func__, retval); |
305 | goto error_unanchor; | 305 | goto error_unanchor; |
306 | } | 306 | } |
307 | 307 | ||