Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c167df44 authored by Daniel Vetter's avatar Daniel Vetter Committed by Eric Anholt
Browse files

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: default avatarDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 6e89a3ce
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 = {