diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2018-07-17 04:33:49 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2018-07-17 06:11:03 -0400 |
commit | 1ef2917d1d9e6cce41c8794b2e3e81552b1668e4 (patch) | |
tree | 36d14356be0c7bba645efda5683e710ba677297d /drivers/gpu/drm/imx/imx-drm-core.c | |
parent | 4e3c5d7e05be6c9c6de4f4da9116511428924997 (diff) |
drm/imx: 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: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 1d053bbefc02..c895fe78fb48 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -229,7 +229,7 @@ static int imx_drm_bind(struct device *dev) | |||
229 | imxdrm = devm_kzalloc(dev, sizeof(*imxdrm), GFP_KERNEL); | 229 | imxdrm = devm_kzalloc(dev, sizeof(*imxdrm), GFP_KERNEL); |
230 | if (!imxdrm) { | 230 | if (!imxdrm) { |
231 | ret = -ENOMEM; | 231 | ret = -ENOMEM; |
232 | goto err_unref; | 232 | goto err_put; |
233 | } | 233 | } |
234 | 234 | ||
235 | imxdrm->drm = drm; | 235 | imxdrm->drm = drm; |
@@ -306,8 +306,8 @@ err_unbind: | |||
306 | component_unbind_all(drm->dev, drm); | 306 | component_unbind_all(drm->dev, drm); |
307 | err_kms: | 307 | err_kms: |
308 | drm_mode_config_cleanup(drm); | 308 | drm_mode_config_cleanup(drm); |
309 | err_unref: | 309 | err_put: |
310 | drm_dev_unref(drm); | 310 | drm_dev_put(drm); |
311 | 311 | ||
312 | return ret; | 312 | return ret; |
313 | } | 313 | } |
@@ -327,7 +327,7 @@ static void imx_drm_unbind(struct device *dev) | |||
327 | component_unbind_all(drm->dev, drm); | 327 | component_unbind_all(drm->dev, drm); |
328 | dev_set_drvdata(dev, NULL); | 328 | dev_set_drvdata(dev, NULL); |
329 | 329 | ||
330 | drm_dev_unref(drm); | 330 | drm_dev_put(drm); |
331 | } | 331 | } |
332 | 332 | ||
333 | static const struct component_master_ops imx_drm_ops = { | 333 | static const struct component_master_ops imx_drm_ops = { |