leds: pwm: Fix error code in led_pwm_create_fwnode()
[ Upstream commitcadb2de2a7
] Negative -EINVAL was intended, not positive EINVAL. Fix it. Fixes:95138e0127
("leds: pwm: Make error handling more robust") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/a33b981a-b2c4-4dc2-b00a-626a090d2f11@moroto.mountain Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Родитель
abd740db89
Коммит
1a68bef237
|
@ -146,7 +146,7 @@ static int led_pwm_create_fwnode(struct device *dev, struct led_pwm_priv *priv)
|
||||||
led.name = to_of_node(fwnode)->name;
|
led.name = to_of_node(fwnode)->name;
|
||||||
|
|
||||||
if (!led.name) {
|
if (!led.name) {
|
||||||
ret = EINVAL;
|
ret = -EINVAL;
|
||||||
goto err_child_out;
|
goto err_child_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче