Commit 90b7f2ea authored by Dan Carpenter's avatar Dan Carpenter Committed by Lee Jones
Browse files

backlight: lm3509_bl: Fix NULL vs IS_ERR() check in register() function



The devm_backlight_device_register() doesn't return NULL, it returns
error pointers.  Update the error checking to match.

Fixes: b72755f5 ("backlight: Add new lm3509 backlight driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/187b5bc5-a010-46c2-8ead-980df9efae79@moroto.mountain


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