diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2018-05-18 18:51:32 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-07-16 10:06:29 +0200 |
commit | 01981aeb4745e31e0842b6f9f98be9b99615db3c (patch) | |
tree | 1cb6b40e00d52ee5d6c19a6fee3c3b3dd7df0fb0 /drivers/gpu/drm/nouveau | |
parent | drm/nouveau/disp/nv50-gp10x: fix coverity warning (diff) | |
download | linux-01981aeb4745e31e0842b6f9f98be9b99615db3c.tar.xz linux-01981aeb4745e31e0842b6f9f98be9b99615db3c.zip |
drm/nouveau/kms/nv50-: fix drm-get-put.cocci warnings
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and
drm_*_unreference() helpers.
Generated by: scripts/coccinelle/api/drm-get-put.cocci
Fixes: 30ed49b55b6e ("drm/nouveau/kms/nv50-: move code underneath dispnv50/")
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index b83465ae7c1b..1f8bba8f6528 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1007,7 +1007,7 @@ nv50_mstm_destroy_connector(struct drm_dp_mst_topology_mgr *mgr, mstc->port = NULL; drm_modeset_unlock(&drm->dev->mode_config.connection_mutex); - drm_connector_unreference(&mstc->connector); + drm_connector_put(&mstc->connector); } static void |