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

Commit a8f2023d authored by Cihangir Akturk's avatar Cihangir Akturk Committed by Philipp Zabel
Browse files

drm/imx: switch to drm_*_get(), drm_*_put() helpers



Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference()
and drm_*_unreference() helpers.

drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() and should not be
used by new code. So convert all users of compatibility functions to
use the new APIs.

Generated by: scripts/coccinelle/api/drm-get-put.cocci

Signed-off-by: default avatarCihangir Akturk <cakturk@gmail.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 2bd6bf03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -115,7 +115,7 @@ static void imx_drm_crtc_reset(struct drm_crtc *crtc)


	if (crtc->state) {
	if (crtc->state) {
		if (crtc->state->mode_blob)
		if (crtc->state->mode_blob)
			drm_property_unreference_blob(crtc->state->mode_blob);
			drm_property_blob_put(crtc->state->mode_blob);


		state = to_imx_crtc_state(crtc->state);
		state = to_imx_crtc_state(crtc->state);
		memset(state, 0, sizeof(*state));
		memset(state, 0, sizeof(*state));