Skip to content

Commit

Permalink
drm/meson: Use drm_dev_put() instead of drm_dev_unref()
Browse files Browse the repository at this point in the history
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 <christophe.jaillet@wanadoo.fr>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/d4ce46077d3ada7149c4555acfdda8ade4a6cf50.1520885192.git.christophe.jaillet@wanadoo.fr
  • Loading branch information
Christophe JAILLET authored and Neil Armstrong committed Mar 13, 2018
1 parent e770f6b commit dcacf65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/meson/meson_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int meson_drv_bind_master(struct device *dev, bool has_components)
return 0;

free_drm:
drm_dev_unref(drm);
drm_dev_put(drm);

return ret;
}
Expand All @@ -303,7 +303,7 @@ static void meson_drv_unbind(struct device *dev)
drm_kms_helper_poll_fini(drm);
drm_fbdev_cma_fini(priv->fbdev);
drm_mode_config_cleanup(drm);
drm_dev_unref(drm);
drm_dev_put(drm);

}

Expand Down

0 comments on commit dcacf65

Please sign in to comment.