]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: lm3509_bl: Fix NULL vs IS_ERR() check in register() function
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 6 Jun 2024 13:10:23 +0000 (16:10 +0300)
committerLee Jones <lee@kernel.org>
Thu, 13 Jun 2024 16:45:23 +0000 (17:45 +0100)
commit90b7f2ead953aab5677ae8235d78841cee8fd13e
treec89ba61b1b4d8e1c5b64701016ac9ee3557ed399
parentb72755f5b577357cac661cbf9048cad704eb4ad8
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: b72755f5b577 ("backlight: Add new lm3509 backlight driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/187b5bc5-a010-46c2-8ead-980df9efae79@moroto.mountain
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/lm3509_bl.c