leds: flash: leds-qcom-flash: Put child node if registration failed
authorFenglin Wu <quic_fenglinw@quicinc.com>
Tue, 25 Jul 2023 09:57:21 +0000 (17:57 +0800)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 11:17:40 +0000 (12:17 +0100)
commit546924102de8327a5b2095d2134faed6de971476
treec84bdca8c927774934c74155942ce832f18ab738
parent7c47381c8664d55861036d1d858daf5e9d5d67b8
leds: flash: leds-qcom-flash: Put child node if registration failed

Put the child node if register flash LED device failed.

Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Link: https://lore.kernel.org/r/20230725-leds-qcom-flash-driver-tiny-fixes-v2-3-0f5cbce5fed0@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/leds-qcom-flash.c