drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable
authorMirza Krak <mirza.krak@endian.se>
Wed, 15 Nov 2017 08:24:46 +0000 (08:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:03 +0000 (17:39 +0100)
commit093a5cb46d05895d02c36d5be784c7a71cd0c585
treeaa9454ef681f7557e4de52ff9364cf26903d8ecd
parent9be97a9abe9e0a3166320f21a42dc5e0966cb5c4
drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable

[ Upstream commit 517f56839f581618d24f2e67a35738a5c6cbaecb ]

In the case where the bind gets deferred we would end up with a
un-balanced runtime PM enable call.

Fix this by simply moving the pm_runtime_enable call to the end of
the bind function when all paths have succeeded.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1510734286-37434-1-git-send-email-mirza.krak@endian.se
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/rockchip/dw-mipi-dsi.c