drm/panel: ilitek-ili9881c: turn off power-supply when init fails

[ Upstream commit 6c66eba502 ]

The prepare function turns on the power-supply regulator first, when
preparing the display. But in an error case, just returns the error
code, but does not power off the regulator again, fix that.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250707164906.1445288-2-heiko@sntech.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Heiko Stuebner 2025-07-07 18:48:54 +02:00 • committed by Greg Kroah-Hartman
commit c7b7dbcb98