Commit 77d062a5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Vojtech Pavlik

[PATCH] USB: convert keyspan driver to use dev_err() and dev_info() macros

parent c2d953cf
...@@ -1037,7 +1037,7 @@ static int keyspan_fake_startup (struct usb_serial *serial) ...@@ -1037,7 +1037,7 @@ static int keyspan_fake_startup (struct usb_serial *serial)
} }
if (record == NULL) { if (record == NULL) {
err("Required keyspan firmware image (%s) unavailable.", fw_name); dev_err(serial->dev->dev, "Required keyspan firmware image (%s) unavailable.\n", fw_name);
return(1); return(1);
} }
...@@ -1051,10 +1051,10 @@ static int keyspan_fake_startup (struct usb_serial *serial) ...@@ -1051,10 +1051,10 @@ static int keyspan_fake_startup (struct usb_serial *serial)
(unsigned char *)record->data, (unsigned char *)record->data,
record->data_size, 0xa0); record->data_size, 0xa0);
if (response < 0) { if (response < 0) {
err("ezusb_writememory failed for Keyspan" dev_err(serial->dev->dev, "ezusb_writememory failed for Keyspan"
"firmware (%d %04X %p %d)", "firmware (%d %04X %p %d)\n",
response, response,
record->address, record->data, record->data_size); record->address, record->data, record->data_size);
break; break;
} }
record++; record++;
...@@ -1849,7 +1849,7 @@ static int keyspan_startup (struct usb_serial *serial) ...@@ -1849,7 +1849,7 @@ static int keyspan_startup (struct usb_serial *serial)
if (d_details->product_id == serial->dev->descriptor.idProduct) if (d_details->product_id == serial->dev->descriptor.idProduct)
break; break;
if (d_details == NULL) { if (d_details == NULL) {
err("%s - unknown product id %x", __FUNCTION__, serial->dev->descriptor.idProduct); dev_err(serial->dev->dev, "%s - unknown product id %x\n", __FUNCTION__, serial->dev->descriptor.idProduct);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment