summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 14:48:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-25 14:48:30 -0700
commit2385f3c3c757b6ffb766c320df4a7f7a45593f24 (patch)
tree778a04f1c9f4ec6dbc3e256bb8b99b6347d90856 /drivers/input/misc
parent4efeca581bc84105c2e82d28a3a29e6cd9784204 (diff)
downloadop-kernel-dev-2385f3c3c757b6ffb766c320df4a7f7a45593f24.zip
op-kernel-dev-2385f3c3c757b6ffb766c320df4a7f7a45593f24.tar.gz
USB: powermate.c: remove err() usage
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/powermate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c
index 538f704..71ec621 100644
--- a/drivers/input/misc/powermate.c
+++ b/drivers/input/misc/powermate.c
@@ -110,8 +110,9 @@ static void powermate_irq(struct urb *urb)
exit:
retval = usb_submit_urb (urb, GFP_ATOMIC);
if (retval)
- err ("%s - usb_submit_urb failed with result %d",
- __func__, retval);
+ dev_err(&pm->udev->dev,
+ "%s - usb_submit_urb failed with result: %d\n",
+ __func__, retval);
}
/* Decide if we need to issue a control message and do so. Must be called with pm->lock taken */
OpenPOWER on IntegriCloud