mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Rusty Russell <[email protected]> Cc: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
1a71bd2e97
commit
d9bb03dc89
1 changed files with 4 additions and 4 deletions
|
|
@ -845,8 +845,8 @@ static int build_i2c_fw_hdr(__u8 *header, struct device *dev)
|
|||
|
||||
err = request_firmware(&fw, fw_name, dev);
|
||||
if (err) {
|
||||
printk(KERN_ERR "Failed to load image \"%s\" err %d\n",
|
||||
fw_name, err);
|
||||
dev_err(dev, "Failed to load image \"%s\" err %d\n",
|
||||
fw_name, err);
|
||||
kfree(buffer);
|
||||
return err;
|
||||
}
|
||||
|
|
@ -1404,8 +1404,8 @@ static int download_fw(struct edgeport_serial *serial)
|
|||
|
||||
err = request_firmware(&fw, fw_name, dev);
|
||||
if (err) {
|
||||
printk(KERN_ERR "Failed to load image \"%s\" err %d\n",
|
||||
fw_name, err);
|
||||
dev_err(dev, "Failed to load image \"%s\" err %d\n",
|
||||
fw_name, err);
|
||||
kfree(buffer);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue