On Thu, Jun 06, 2024 at 04:10:23PM +0300, Dan Carpenter wrote: > The devm_backlight_device_register() doesn't return NULL, it returns > error pointers. Update the error checking to match. > > Fixes: b72755f5b577 ("backlight: Add new lm3509 backlight driver") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Reviewed-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx> Daniel.