drm/rockchip: analogix_dp: Add a sanity check for rockchip_drm_psr_register()
authorJeffy Chen <[email protected]>
Wed, 10 Jan 2018 16:23:43 +0000 (17:23 +0100)
committerHeiko Stuebner <[email protected]>
Thu, 1 Mar 2018 15:21:08 +0000 (16:21 +0100)
commitc8c045142125e7c054f66241d9f3b3151bb70daf
tree657c4469f1155b01c2c7c31a60bdc6a38d8a5a1c
parent7fe201cd55bb3527c4b7152fc099a3c5fb9054c3
drm/rockchip: analogix_dp: Add a sanity check for rockchip_drm_psr_register()

The rockchip_drm_psr_register() can fail, so add a sanity check for that.

Signed-off-by: Jeffy Chen <[email protected]>
Signed-off-by: Thierry Escande <[email protected]>
[moved psr_unregister reordering in unbind to separate patch]
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c