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 <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
Johan Hovold 2015-09-01 12:25:28 +02:00
parent 505c9d27b8
commit 2630fbf828
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}