We need to set driver data to NULL when we bailout from ->bind(),
otherwise it would be leaked to the system power management operations
and cause invalid driver data being used there.
Reported-by: Anson Huang <Anson.Huang@nxp.com>
Fixes:
54db5decce17 ("drm/imx: drop deprecated load/unload drm_driver ops")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
#endif
component_unbind_all(drm->dev, drm);
err_vblank:
+ dev_set_drvdata(dev, NULL);
drm_vblank_cleanup(drm);
err_kms:
drm_mode_config_cleanup(drm);