summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/usbkbd.c
diff options
context:
space:
mode:
authorFrom: Greg Kroah-Hartman <gregkh@suse.de>2008-10-12 00:25:51 +0200
committerJiri Kosina <jkosina@suse.cz>2008-10-14 23:51:03 +0200
commit7d89fe12bd21f1383a6a240114221bf31fd71904 (patch)
tree261850f7d0c754d9182d77a7fa56d663282f5eb8 /drivers/hid/usbhid/usbkbd.c
parentddbe32491951c092abbd3647fd104e79deb19528 (diff)
downloadblackbird-op-linux-7d89fe12bd21f1383a6a240114221bf31fd71904.tar.gz
blackbird-op-linux-7d89fe12bd21f1383a6a240114221bf31fd71904.zip
HID: remove warn() macro from usb hid drivers
USB should not be having it's own printk macros, so remove warn() and use the system-wide standard of dev_warn() wherever possible. In the few places that will not work out, use a basic printk(). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/usbkbd.c')
-rw-r--r--drivers/hid/usbhid/usbkbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/usbkbd.c b/drivers/hid/usbhid/usbkbd.c
index d400afdaf2b3..b342926dd7fc 100644
--- a/drivers/hid/usbhid/usbkbd.c
+++ b/drivers/hid/usbhid/usbkbd.c
@@ -161,7 +161,8 @@ static void usb_kbd_led(struct urb *urb)
struct usb_kbd *kbd = urb->context;
if (urb->status)
- warn("led urb status %d received", urb->status);
+ dev_warn(&urb->dev->dev, "led urb status %d received\n",
+ urb->status);
if (*(kbd->leds) == kbd->newleds)
return;
OpenPOWER on IntegriCloud