Skip to content

Commit

Permalink
USB: musb: move two printk to dev_err
Browse files Browse the repository at this point in the history
trivial cleanup, no functional changes.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 195e9e4 commit b3b1cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ musb_vbus_store(struct device *dev, struct device_attribute *attr,
unsigned long val;

if (sscanf(buf, "%lu", &val) < 1) {
printk(KERN_ERR "Invalid VBUS timeout ms value\n");
dev_err(dev, "Invalid VBUS timeout ms value\n");
return -EINVAL;
}

Expand Down Expand Up @@ -1746,7 +1746,7 @@ musb_srp_store(struct device *dev, struct device_attribute *attr,

if (sscanf(buf, "%hu", &srp) != 1
|| (srp != 1)) {
printk(KERN_ERR "SRP: Value must be 1\n");
dev_err(dev, "SRP: Value must be 1\n");
return -EINVAL;
}

Expand Down

0 comments on commit b3b1cc3

Please sign in to comment.