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: Daniel Vetter <daniel.vetter@ffwll.ch> Reported-by: Daniel Vetter <daniel.vetter@intel.com> Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
This commit is contained in:
parent
b93c846273
commit
12cb4c87aa
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue