aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/usbkbd.c
diff options
context:
space:
mode:
authorFrom: Greg Kroah-Hartman <gregkh@suse.de>2008-10-11 18:25:51 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:51:03 -0400
commit7d89fe12bd21f1383a6a240114221bf31fd71904 (patch)
tree261850f7d0c754d9182d77a7fa56d663282f5eb8 /drivers/hid/usbhid/usbkbd.c
parentddbe32491951c092abbd3647fd104e79deb19528 (diff)
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)
161 struct usb_kbd *kbd = urb->context; 161 struct usb_kbd *kbd = urb->context;
162 162
163 if (urb->status) 163 if (urb->status)
164 warn("led urb status %d received", urb->status); 164 dev_warn(&urb->dev->dev, "led urb status %d received\n",
165 urb->status);
165 166
166 if (*(kbd->leds) == kbd->newleds) 167 if (*(kbd->leds) == kbd->newleds)
167 return; 168 return;