summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-08 12:07:39 +0100
committerEric Anholt <eric@anholt.net>2016-12-09 15:28:42 -0800
commitc167df443b4a8d97d25a8e69bd9f490a1e3fe646 (patch)
tree858c88a7c7213d04ec88201c679e11ab003f6548 /drivers/gpu/drm
parent6e89a3ce7c5806fdf07aa64c0d32620592e83d38 (diff)
downloadlinux-c167df443b4a8d97d25a8e69bd9f490a1e3fe646.tar.gz
linux-c167df443b4a8d97d25a8e69bd9f490a1e3fe646.tar.bz2
linux-c167df443b4a8d97d25a8e69bd9f490a1e3fe646.zip
drm/vc4: Don't use drm_put_dev
vc4 already has a proper load sequence, but the unload one needed some fixups: First unregister, and last drop the final ref. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
index df3da26a849e..bdab333979dc 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.c
+++ b/drivers/gpu/drm/vc4/vc4_drv.c
@@ -279,12 +279,14 @@ static void vc4_drm_unbind(struct device *dev)
struct drm_device *drm = platform_get_drvdata(pdev);
struct vc4_dev *vc4 = to_vc4_dev(drm);
+ drm_dev_unregister(drm);
+
if (vc4->fbdev)
drm_fbdev_cma_fini(vc4->fbdev);
drm_mode_config_cleanup(drm);
- drm_put_dev(drm);
+ drm_dev_unref(drm);
}
static const struct component_master_ops vc4_drm_ops = {