Skip to content
Commit 2804cc35 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

leds: pwm: Fix error code in led_pwm_create_fwnode()



[ Upstream commit cadb2de2 ]

Negative -EINVAL was intended, not positive EINVAL.  Fix it.

Fixes: 95138e01 ("leds: pwm: Make error handling more robust")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/a33b981a-b2c4-4dc2-b00a-626a090d2f11@moroto.mountain


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cae0787e
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