提交 7b22a885 编写于 作者: G Greg Kroah-Hartman

USB: iforce: 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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9451df0e
......@@ -317,7 +317,8 @@ int iforce_init_device(struct iforce *iforce)
break;
if (i == 20) { /* 5 seconds */
err("Timeout waiting for response from device.");
dev_err(&input_dev->dev,
"Timeout waiting for response from device.\n");
error = -ENODEV;
goto fail;
}
......
......@@ -257,7 +257,8 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
status = usb_submit_urb(iforce->ctrl, GFP_ATOMIC);
if (status) {
err("usb_submit_urb failed %d", status);
dev_err(&iforce->usbdev->dev,
"usb_submit_urb failed %d\n", status);
return -1;
}
......@@ -289,12 +290,15 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
return -1;
}
#else
err("iforce_get_id_packet: iforce->bus = SERIO!");
dev_err(&iforce->dev->dev,
"iforce_get_id_packet: iforce->bus = SERIO!\n");
#endif
break;
default:
err("iforce_get_id_packet: iforce->bus = %d", iforce->bus);
dev_err(&iforce->dev->dev,
"iforce_get_id_packet: iforce->bus = %d\n",
iforce->bus);
break;
}
......
......@@ -100,7 +100,8 @@ static void iforce_usb_irq(struct urb *urb)
exit:
status = usb_submit_urb (urb, GFP_ATOMIC);
if (status)
err ("%s - usb_submit_urb failed with result %d",
dev_err(&iforce->usbdev->dev,
"%s - usb_submit_urb failed with result %d\n",
__func__, status);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册