Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357115
b: refs/heads/master
c: 5c77dc4
h: refs/heads/master
i:
  357113: e0e3675
  357111: 1778b7e
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent fb4de7e commit 360a118
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df4f07b5066f3db4270e5b3240fd8292fd28aebb
refs/heads/master: 5c77dc40c9fe957220b30c1334d8959be554e1d8
28 changes: 13 additions & 15 deletions trunk/drivers/staging/media/lirc/lirc_imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/errno.h>
#include <linux/init.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -205,12 +207,12 @@ static void deregister_from_lirc(struct imon_context *context)

retval = lirc_unregister_driver(minor);
if (retval)
printk(KERN_ERR KBUILD_MODNAME
": %s: unable to deregister from lirc(%d)",
__func__, retval);
dev_err(&context->usbdev->dev,
": %s: unable to deregister from lirc(%d)",
__func__, retval);
else
printk(KERN_INFO MOD_NAME ": Deregistered iMON driver "
"(minor:%d)\n", minor);
dev_info(&context->usbdev->dev,
"Deregistered iMON driver (minor:%d)\n", minor);

}

Expand All @@ -231,8 +233,7 @@ static int display_open(struct inode *inode, struct file *file)
subminor = iminor(inode);
interface = usb_find_interface(&imon_driver, subminor);
if (!interface) {
printk(KERN_ERR KBUILD_MODNAME
": %s: could not find interface for minor %d\n",
pr_err("%s: could not find interface for minor %d\n",
__func__, subminor);
retval = -ENODEV;
goto exit;
Expand Down Expand Up @@ -282,8 +283,7 @@ static int display_close(struct inode *inode, struct file *file)
context = file->private_data;

if (!context) {
printk(KERN_ERR KBUILD_MODNAME
"%s: no context for device\n", __func__);
pr_err("%s: no context for device\n", __func__);
return -ENODEV;
}

Expand Down Expand Up @@ -391,8 +391,7 @@ static ssize_t vfd_write(struct file *file, const char __user *buf,

context = file->private_data;
if (!context) {
printk(KERN_ERR KBUILD_MODNAME
"%s: no context for device\n", __func__);
pr_err("%s: no context for device\n", __func__);
return -ENODEV;
}

Expand Down Expand Up @@ -521,8 +520,7 @@ static void ir_close(void *data)

context = (struct imon_context *)data;
if (!context) {
printk(KERN_ERR KBUILD_MODNAME
"%s: no context for device\n", __func__);
pr_err("%s: no context for device\n", __func__);
return;
}

Expand Down Expand Up @@ -1009,8 +1007,8 @@ static void imon_disconnect(struct usb_interface *interface)

mutex_unlock(&driver_lock);

printk(KERN_INFO "%s: iMON device (intf%d) disconnected\n",
__func__, ifnum);
dev_info(&interface->dev, "%s: iMON device (intf%d) disconnected\n",
__func__, ifnum);
}

static int imon_suspend(struct usb_interface *intf, pm_message_t message)
Expand Down

0 comments on commit 360a118

Please sign in to comment.