Skip to content

Commit

Permalink
drm/vc4: Don't use drm_put_dev
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
danvet authored and anholt committed Dec 9, 2016
1 parent 6e89a3c commit c167df4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/vc4/vc4_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c167df4

Please sign in to comment.