OSDN Git Service

drm/mcde: Fix unbalanced regulator
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 8 Nov 2020 11:35:35 +0000 (12:35 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Nov 2020 23:27:53 +0000 (00:27 +0100)
commita6c40b8032b845f132abfcbcbed6bddebbcc3b4a
treed22ffb962522bf18e9f92e8f02cc31fde4b19ca2
parent06ad8d339524bf94b89859047822c31df6ace239
drm/mcde: Fix unbalanced regulator

Since we now turn off the EPOD regulator to reset the
hardware, we need to balance the regulators after that
point. If registering the master fails we only need
to disable one regulator. Fix this by open-coding
this leg of the error path.

Fixes: c4842d4d0f74 ("drm/mcde: Fix display pipeline restart")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephan Gerhold <stephan@gerhold.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20201108113535.1819952-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_drv.c