Skip to content

Commit dcacf65

Browse files
tititiou36superna9999
authored andcommitted
drm/meson: Use drm_dev_put() instead of drm_dev_unref()
According to 'drivers/gpu/drm/drm_drv.c', 'drm_dev_unref()' is just a compatibility alias for 'drm_dev_put()'. So use the latter instead. Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/d4ce46077d3ada7149c4555acfdda8ade4a6cf50.1520885192.git.christophe.jaillet@wanadoo.fr
1 parent e770f6b commit dcacf65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/meson/meson_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static int meson_drv_bind_master(struct device *dev, bool has_components)
284284
return 0;
285285

286286
free_drm:
287-
drm_dev_unref(drm);
287+
drm_dev_put(drm);
288288

289289
return ret;
290290
}
@@ -303,7 +303,7 @@ static void meson_drv_unbind(struct device *dev)
303303
drm_kms_helper_poll_fini(drm);
304304
drm_fbdev_cma_fini(priv->fbdev);
305305
drm_mode_config_cleanup(drm);
306-
drm_dev_unref(drm);
306+
drm_dev_put(drm);
307307

308308
}
309309

0 commit comments

Comments
 (0)