summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_platform.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tdz@users.sourceforge.net>2018-06-18 15:53:12 +0300
committerBen Skeggs <bskeggs@redhat.com>2018-07-16 11:06:30 +0300
commit94a0b8634f4ccb0a512702f96df67914b615d556 (patch)
tree75633077443b8320fe795e969e2c40db22b30797 /drivers/gpu/drm/nouveau/nouveau_platform.c
parent743e0f079a38182cb22e663b34e6a45ad3274b9e (diff)
downloadlinux-94a0b8634f4ccb0a512702f96df67914b615d556.tar.xz
drm/nouveau: 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 <tdz@users.sourceforge.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_platform.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c
index 1ada186fab77..039e23548e08 100644
--- a/drivers/gpu/drm/nouveau/nouveau_platform.c
+++ b/drivers/gpu/drm/nouveau/nouveau_platform.c
@@ -36,7 +36,7 @@ static int nouveau_platform_probe(struct platform_device *pdev)
ret = drm_dev_register(drm, 0);
if (ret < 0) {
- drm_dev_unref(drm);
+ drm_dev_put(drm);
return ret;
}