]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
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 5f335895d2300365a23862fe48ef2e1fa4e3db62..d91905f0f7b3238725edd6024762b50cf3b8754d 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;
        }