OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505c9d2
)
greybus: pwm: replace pr_err with dev_err
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 1 Sep 2015 10:25:28 +0000
(12:25 +0200)
committer
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 2 Sep 2015 08:48:31 +0000
(10:48 +0200)
Replace pr_err with the more descriptive dev_err. Also include the error
code on failure to register the PWM chip.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/staging/greybus/pwm.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/pwm.c
b/drivers/staging/greybus/pwm.c
index
5f33589
..
d91905f
100644
(file)
--- a/
drivers/staging/greybus/pwm.c
+++ b/
drivers/staging/greybus/pwm.c
@@
-204,7
+204,7
@@
static int gb_pwm_connection_init(struct gb_connection *connection)
ret = pwmchip_add(pwm);
if (ret) {
-
pr_err("Failed to register PWM\n"
);
+
dev_err(&connection->dev, "failed to register PWM: %d\n", ret
);
goto out_err;
}