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

Unverified Commit 4c2ae34f authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Maxime Ripard
Browse files

drm/sun4i: Replace drm_dev_unref with drm_dev_put



This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180717084814.18091-1-tzimmermann@suse.de
parent 4f45c778
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static int sun4i_drv_bind(struct device *dev)
	drm_mode_config_cleanup(drm);
	of_reserved_mem_device_release(dev);
free_drm:
	drm_dev_unref(drm);
	drm_dev_put(drm);
	return ret;
}

@@ -157,7 +157,7 @@ static void sun4i_drv_unbind(struct device *dev)
	sun4i_framebuffer_free(drm);
	drm_mode_config_cleanup(drm);
	of_reserved_mem_device_release(dev);
	drm_dev_unref(drm);
	drm_dev_put(drm);
}

static const struct component_master_ops sun4i_drv_master_ops = {