[PATCH] backlight: lm3509_bl: Fix NULL vs IS_ERR() check in register() function
Daniel Thompson
daniel.thompson at linaro.org
Thu Jun 13 16:24:45 UTC 2024
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 at linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson at linaro.org>
Daniel.
More information about the dri-devel
mailing list