From: Jingoo Han Date: Thu, 19 Dec 2013 05:12:05 +0000 (+0900) Subject: pwm: tiehrpwm: use dev_err() instead of pr_err() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=82569e5b2236bc139f89dfd18c6088985a52c8ee;p=linux-beck.git 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 Signed-off-by: Thierry Reding --- 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) /* 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; }