MLK-16812 drm/imx: ldb: Let system PM behave properly when we are unbinded
authorLiu Ying <victor.liu@nxp.com>
Tue, 14 Nov 2017 05:28:41 +0000 (13:28 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit6c5154011b0866b36296236dae1a98fe7c154b9e
treeaa319fd93fd1e1cfb8b9dbf6a991355cfa3457f9
parent62a8ea5d957ce3b124c91bc520aae80d0a72b33e
MLK-16812 drm/imx: ldb: Let system PM behave properly when we are unbinded

The system power management operations should get correct driver data
before going on to further handling.  When the component is unbinded,
driver data should be set to NULL so that the system power management
may be bypassed(return early).  This way, we may prevent the system power
management from using any invalid driver data.

Fixes: 915ac0ad7369 ("MLK-16581-7 drm/imx: ldb: Add system power management support")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 91033d8707a92e089fbe0b9cb48565d2c8581659)
drivers/gpu/drm/imx/imx-ldb.c