]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:44 +0000 (10:00 +0200)
commit94c4af7b9717fb38285090c3969ac19e03d0170a
tree48fab14c097f757c33b87afc4f82a9ed68f18006
parent287b4cc2c975d099fdf8958c4fefa404f1dd2b25
leds: lgm-sso: Propagate error codes from callee to caller

[ Upstream commit 9cbc861095375793a69858f91f3ac4e817f320f0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/leds/blink/leds-lgm-sso.c