* [PATCH] pwm: tiehrpwm: use dev_err() instead of pr_err()
@ 2013-12-19 5:12 Jingoo Han
2013-12-20 10:08 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-12-19 5:12 UTC (permalink / raw)
To: 'Thierry Reding'
Cc: linux-pwm, 'Jingoo Han', 'Philip Avinash'
Use dev_err() instead of pr_err() to provide a better message
to userspace.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/pwm/pwm-tiehrpwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index a4d8f51..aee4471 100644
--- a/drivers/pwm/pwm-tiehrpwm.c
+++ b/drivers/pwm/pwm-tiehrpwm.c
@@ -360,8 +360,8 @@ static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
/* Enable TBCLK before enabling PWM device */
ret = clk_enable(pc->tbclk);
if (ret) {
- pr_err("Failed to enable TBCLK for %s\n",
- dev_name(pc->chip.dev));
+ dev_err(chip->dev, "Failed to enable TBCLK for %s\n",
+ dev_name(pc->chip.dev));
return ret;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pwm: tiehrpwm: use dev_err() instead of pr_err()
2013-12-19 5:12 [PATCH] pwm: tiehrpwm: use dev_err() instead of pr_err() Jingoo Han
@ 2013-12-20 10:08 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2013-12-20 10:08 UTC (permalink / raw)
To: Jingoo Han; +Cc: linux-pwm, 'Philip Avinash'
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
On Thu, Dec 19, 2013 at 02:12:05PM +0900, Jingoo Han wrote:
> Use dev_err() instead of pr_err() to provide a better message
> to userspace.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/pwm/pwm-tiehrpwm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-20 10:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 5:12 [PATCH] pwm: tiehrpwm: use dev_err() instead of pr_err() Jingoo Han
2013-12-20 10:08 ` Thierry Reding
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.