OSDN Git Service

greybus: pwm: replace pr_err with dev_err
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 1 Sep 2015 10:25:28 +0000 (12:25 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Wed, 2 Sep 2015 08:48:31 +0000 (10:48 +0200)
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>
drivers/staging/greybus/pwm.c

index 5f33589..d91905f 100644 (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;
        }