leds: lgm-sso: Propagate error codes from callee to caller
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Aug 2021 11:26:19 +0000 (14:26 +0300)
committerPavel Machek <pavel@ucw.cz>
Sat, 7 Aug 2021 07:12:45 +0000 (09:12 +0200)
commit9cbc861095375793a69858f91f3ac4e817f320f0
tree44a20f01421385c51f009343e9e5ebf5b562e286
parent64f67b5240db79eceb0bd57dae8e591fd3103ba0
leds: lgm-sso: Propagate error codes from callee to caller

The one of the latest change to the driver reveals the problem that
the error codes from callee aren't propagated to the caller of
__sso_led_dt_parse(). Fix this accordingly.

Fixes: 9999908ca1ab ("leds: lgm-sso: Put fwnode in any case during ->probe()")
Fixes: c3987cd2bca3 ("leds: lgm: Add LED controller driver for LGM SoC")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/blink/leds-lgm-sso.c