From: Greg Kroah-Hartman Date: Wed, 2 May 2012 00:56:51 +0000 (-0400) Subject: USB: input: acecad.c: fix up dev_err() usage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b30662c4721ea77ca5930dd60f3294cd1413067f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: input: acecad.c: fix up dev_err() usage We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index da6c34106190..a81a2b060284 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c @@ -105,7 +105,7 @@ static void usb_acecad_irq(struct urb *urb) resubmit: status = usb_submit_urb(urb, GFP_ATOMIC); if (status) - dev_err(&acecad->usbdev->dev, + dev_err(&dev->dev, "can't resubmit intr, %s-%s/input0, status %d\n", acecad->usbdev->bus->bus_name, acecad->usbdev->devpath, status);