From: Johan Hovold Date: Tue, 1 Sep 2015 10:25:28 +0000 (+0200) Subject: greybus: pwm: replace pr_err with dev_err X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2630fbf828ed921bd52cfe1fbacc9ad16aa2f47a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: pwm: replace pr_err with dev_err 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 Reviewed-by: Viresh Kumar --- diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c index 5f335895d230..d91905f0f7b3 100644 --- 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; }