aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-19 00:12:05 -0500
committerThierry Reding <thierry.reding@gmail.com>2013-12-20 05:03:17 -0500
commit82569e5b2236bc139f89dfd18c6088985a52c8ee (patch)
tree7916c63c90348f85d51507f534a10d2df4e2c1bc /drivers
parentb07ab66391e47aacca9309eb88edef4897d94c77 (diff)
pwm: tiehrpwm: use dev_err() instead of pr_err()
Use dev_err() instead of pr_err() to provide a better message to userspace. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-tiehrpwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c
index a4d8f519d965..aee4471424d1 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)
360 /* Enable TBCLK before enabling PWM device */ 360 /* Enable TBCLK before enabling PWM device */
361 ret = clk_enable(pc->tbclk); 361 ret = clk_enable(pc->tbclk);
362 if (ret) { 362 if (ret) {
363 pr_err("Failed to enable TBCLK for %s\n", 363 dev_err(chip->dev, "Failed to enable TBCLK for %s\n",
364 dev_name(pc->chip.dev)); 364 dev_name(pc->chip.dev));
365 return ret; 365 return ret;
366 } 366 }
367 367