Commit f3ef9d66 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Lee Jones

leds: pwm-multicolor: Simplify an error message

dev_err_probe() already display the error code. There is no need to
duplicate it explicitly in the error message.

While at it, add a missing \n at the end of the message.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/07d35e221faaa380fd11cd4597e42354c8eb350c.1681576017.git.christophe.jaillet@wanadoo.fr
parent 9f6ffd0d
...@@ -158,8 +158,8 @@ static int led_pwm_mc_probe(struct platform_device *pdev) ...@@ -158,8 +158,8 @@ static int led_pwm_mc_probe(struct platform_device *pdev)
ret = led_pwm_mc_set(cdev, cdev->brightness); ret = led_pwm_mc_set(cdev, cdev->brightness);
if (ret) if (ret)
return dev_err_probe(&pdev->dev, ret, return dev_err_probe(&pdev->dev, ret,
"failed to set led PWM value for %s: %d", "failed to set led PWM value for %s\n",
cdev->name, ret); cdev->name);
platform_set_drvdata(pdev, priv); platform_set_drvdata(pdev, priv);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment