leds: spi-byte: Call of_node_put() on error path

[ Upstream commit 7f9ab862e0 ]

Add a missing call to of_node_put(np) on error.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240606173037.3091598-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Andy Shevchenko 2024-06-06 20:29:18 +03:00 • committed by Greg Kroah-Hartman
commit 36e2bc79af