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: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/07d35e221faaa380fd11cd4597e42354c8eb350c.1681576017.git.christophe.jaillet@wanadoo.fr
This commit is contained in:
parent
9f6ffd0da6
commit
f3ef9d668b
|
@ -158,8 +158,8 @@ static int led_pwm_mc_probe(struct platform_device *pdev)
|
|||
ret = led_pwm_mc_set(cdev, cdev->brightness);
|
||||
if (ret)
|
||||
return dev_err_probe(&pdev->dev, ret,
|
||||
"failed to set led PWM value for %s: %d",
|
||||
cdev->name, ret);
|
||||
"failed to set led PWM value for %s\n",
|
||||
cdev->name);
|
||||
|
||||
platform_set_drvdata(pdev, priv);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue