Commit 12cb4c87 authored by Xinliang Liu's avatar Xinliang Liu

drm/hisilicon: Make kirin_drm_unbind sufficient

Remove deprecated drm_put_dev.
Clean up everything needed in unbind.
Thanks to Daniel Vetter, this issue is reported by him.
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Reported-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarXinliang Liu <xinliang.liu@linaro.org>
parent b93c8462
......@@ -244,7 +244,12 @@ static int kirin_drm_bind(struct device *dev)
static void kirin_drm_unbind(struct device *dev)
{
drm_put_dev(dev_get_drvdata(dev));
struct drm_device *drm_dev = dev_get_drvdata(dev);
drm_connector_unregister_all(drm_dev);
drm_dev_unregister(drm_dev);
kirin_drm_kms_cleanup(drm_dev);
drm_dev_unref(drm_dev);
}
static const struct component_master_ops kirin_drm_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment