diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 11:59:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-18 11:59:23 -0400 |
commit | d9bb03dc89c1d63e307cb0bad60b5f6faa16af6f (patch) | |
tree | bb9ca569302f534fcad3fa12dbe62b9cd083169d /drivers/usb/serial | |
parent | 1a71bd2e9731f04a72712aea936627b453233e1e (diff) |
USB: serial: io_ti: remove some remaining printk() calls
Use dev_err() like the rest of that function does, and the rest of the
driver does, to properly show what device and driver caused the problem.
Cc: Johan Hovold <jhovold@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 631725454d73..21c7efa57acf 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -845,8 +845,8 @@ static int build_i2c_fw_hdr(__u8 *header, struct device *dev) | |||
845 | 845 | ||
846 | err = request_firmware(&fw, fw_name, dev); | 846 | err = request_firmware(&fw, fw_name, dev); |
847 | if (err) { | 847 | if (err) { |
848 | printk(KERN_ERR "Failed to load image \"%s\" err %d\n", | 848 | dev_err(dev, "Failed to load image \"%s\" err %d\n", |
849 | fw_name, err); | 849 | fw_name, err); |
850 | kfree(buffer); | 850 | kfree(buffer); |
851 | return err; | 851 | return err; |
852 | } | 852 | } |
@@ -1404,8 +1404,8 @@ static int download_fw(struct edgeport_serial *serial) | |||
1404 | 1404 | ||
1405 | err = request_firmware(&fw, fw_name, dev); | 1405 | err = request_firmware(&fw, fw_name, dev); |
1406 | if (err) { | 1406 | if (err) { |
1407 | printk(KERN_ERR "Failed to load image \"%s\" err %d\n", | 1407 | dev_err(dev, "Failed to load image \"%s\" err %d\n", |
1408 | fw_name, err); | 1408 | fw_name, err); |
1409 | kfree(buffer); | 1409 | kfree(buffer); |
1410 | return err; | 1410 | return err; |
1411 | } | 1411 | } |