summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_modes.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-15 15:10:32 +1000
committerDave Airlie <airlied@redhat.com>2016-04-22 10:26:37 +1000
commit7c8f6d2577c7565f67ba3f6b9b76f7422710d66e (patch)
tree33d60e46d7d32185a4bd61c79015661dd683246b /drivers/gpu/drm/drm_modes.c
parent9a297b36f4bb175ec23054a1182178977cde7859 (diff)
downloadop-kernel-dev-7c8f6d2577c7565f67ba3f6b9b76f7422710d66e.zip
op-kernel-dev-7c8f6d2577c7565f67ba3f6b9b76f7422710d66e.tar.gz
drm/mode: rework drm_mode_object_put to drm_mode_object_unregister.
This changes the code to handle being called multiple times without side effects. The new names seems more suitable for what it does. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
-rw-r--r--drivers/gpu/drm/drm_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index f7448a5..7def3d5 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -98,7 +98,7 @@ void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode)
if (!mode)
return;
- drm_mode_object_put(dev, &mode->base);
+ drm_mode_object_unregister(dev, &mode->base);
kfree(mode);
}
OpenPOWER on IntegriCloud