OSDN Git Service

drm/rockchip: dsi: Fix unbalanced clock on probe error
authorBrian Norris <briannorris@chromium.org>
Tue, 28 Sep 2021 21:35:51 +0000 (14:35 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 17 Oct 2021 21:47:19 +0000 (23:47 +0200)
commit251888398753924059f3bb247a44153a2853137f
treedcfa0a6f4dc21b3b07c022887bfe222f48e71ed2
parente584cdc1549932f87a2707b56bc588cfac5d89e0
drm/rockchip: dsi: Fix unbalanced clock on probe error

Our probe() function never enabled this clock, so we shouldn't disable
it if we fail to probe the bridge.

Noted by inspection.

Fixes: 2d4f7bdafd70 ("drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210928143413.v3.3.Ie8ceefb51ab6065a1151869b6fcda41a467d4d2c@changeid
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c