Commit 87e552ad authored by Dan Carpenter's avatar Dan Carpenter Committed by Lee Jones
Browse files

leds: flash: leds-qcom-flash: Test the correct variable in init



This code was passing the incorrect pointer to PTR_ERR_OR_ZERO() so it
always returned success.  It should have been checking the array element
instead of the array itself.

Fixes: 96a2e242 ("leds: flash: Add driver to support flash LED module in QCOM PMICs")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/ZoWJS_epjIMCYITg@stanley.mountain


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 4137d94f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment