aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_main.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-08-16 17:33:41 -0400
committerDave Airlie <airlied@redhat.com>2017-08-16 17:33:41 -0400
commit3154b133711f70bb50f513773947a8a647d24310 (patch)
treebe1284614bc52cec292ebc150d9983ca08af34cc /drivers/gpu/drm/ast/ast_main.c
parentefa479352fc780b305fa186cafb5f416fdf2b2cb (diff)
parentd956e1293b9b43f3a9a508162cdbaa96cf02e6e0 (diff)
Merge tag 'drm-misc-next-2017-08-16' of git://anongit.freedesktop.org/git/drm-misc into drm-next
UAPI Changes: - vc4: Allow userspace to dictate rendering order in submit_cl ioctl (Eric) Cross-subsystem Changes: - vboxvideo: One of Cihangir's patches applies to vboxvideo which is maintained in staging Core Changes: - atomic_legacy_backoff is officially killed (Daniel) - Extract drm_device.h (Daniel) - Unregister drm device on unplug (Daniel) - Rename deprecated drm_*_(un)?reference functions to drm_*_{get|put} (Cihangir) Driver Changes: - vc4: Error/destroy path cleanups, log level demotion, edid leak (Eric) - various: Make various drm_*_funcs structs const (Bhumika) - tinydrm: add support for LEGO MINDSTORMS EV3 LCD (David) - various: Second half of .dumb_{map_offset|destroy} defaults set (Noralf) Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Eric Anholt <eric@anholt.net> Cc: Bhumika Goyal <bhumirks@gmail.com> Cc: Cihangir Akturk <cakturk@gmail.com> Cc: David Lechner <david@lechnology.com> Cc: Noralf Trønnes <noralf@tronnes.org> * tag 'drm-misc-next-2017-08-16' of git://anongit.freedesktop.org/git/drm-misc: (50 commits) drm/gem-cma-helper: Remove drm_gem_cma_dumb_map_offset() drm/virtio: Use the drm_driver.dumb_destroy default drm/bochs: Use the drm_driver.dumb_destroy default drm/mgag200: Use the drm_driver.dumb_destroy default drm/exynos: Use .dumb_map_offset and .dumb_destroy defaults drm/msm: Use the drm_driver.dumb_destroy default drm/ast: Use the drm_driver.dumb_destroy default drm/qxl: Use the drm_driver.dumb_destroy default drm/udl: Use the drm_driver.dumb_destroy default drm/cirrus: Use the drm_driver.dumb_destroy default drm/tegra: Use .dumb_map_offset and .dumb_destroy defaults drm/gma500: Use .dumb_map_offset and .dumb_destroy defaults drm/mxsfb: Use .dumb_map_offset and .dumb_destroy defaults drm/meson: Use .dumb_map_offset and .dumb_destroy defaults drm/kirin: Use .dumb_map_offset and .dumb_destroy defaults drm/vc4: Continue the switch to drm_*_put() helpers drm/vc4: Fix leak of HDMI EDID dma-buf: fix reservation_object_wait_timeout_rcu to wait correctly v2 dma-buf: add reservation_object_copy_fences (v2) drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD ...
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r--drivers/gpu/drm/ast/ast_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c
index 9a44cdec3bca..dac355812adc 100644
--- a/drivers/gpu/drm/ast/ast_main.c
+++ b/drivers/gpu/drm/ast/ast_main.c
@@ -387,7 +387,7 @@ static void ast_user_framebuffer_destroy(struct drm_framebuffer *fb)
387{ 387{
388 struct ast_framebuffer *ast_fb = to_ast_framebuffer(fb); 388 struct ast_framebuffer *ast_fb = to_ast_framebuffer(fb);
389 389
390 drm_gem_object_unreference_unlocked(ast_fb->obj); 390 drm_gem_object_put_unlocked(ast_fb->obj);
391 drm_framebuffer_cleanup(fb); 391 drm_framebuffer_cleanup(fb);
392 kfree(ast_fb); 392 kfree(ast_fb);
393} 393}
@@ -429,13 +429,13 @@ ast_user_framebuffer_create(struct drm_device *dev,
429 429
430 ast_fb = kzalloc(sizeof(*ast_fb), GFP_KERNEL); 430 ast_fb = kzalloc(sizeof(*ast_fb), GFP_KERNEL);
431 if (!ast_fb) { 431 if (!ast_fb) {
432 drm_gem_object_unreference_unlocked(obj); 432 drm_gem_object_put_unlocked(obj);
433 return ERR_PTR(-ENOMEM); 433 return ERR_PTR(-ENOMEM);
434 } 434 }
435 435
436 ret = ast_framebuffer_init(dev, ast_fb, mode_cmd, obj); 436 ret = ast_framebuffer_init(dev, ast_fb, mode_cmd, obj);
437 if (ret) { 437 if (ret) {
438 drm_gem_object_unreference_unlocked(obj); 438 drm_gem_object_put_unlocked(obj);
439 kfree(ast_fb); 439 kfree(ast_fb);
440 return ERR_PTR(ret); 440 return ERR_PTR(ret);
441 } 441 }
@@ -628,7 +628,7 @@ int ast_dumb_create(struct drm_file *file,
628 return ret; 628 return ret;
629 629
630 ret = drm_gem_handle_create(file, gobj, &handle); 630 ret = drm_gem_handle_create(file, gobj, &handle);
631 drm_gem_object_unreference_unlocked(gobj); 631 drm_gem_object_put_unlocked(gobj);
632 if (ret) 632 if (ret)
633 return ret; 633 return ret;
634 634
@@ -676,7 +676,7 @@ ast_dumb_mmap_offset(struct drm_file *file,
676 bo = gem_to_ast_bo(obj); 676 bo = gem_to_ast_bo(obj);
677 *offset = ast_bo_mmap_offset(bo); 677 *offset = ast_bo_mmap_offset(bo);
678 678
679 drm_gem_object_unreference_unlocked(obj); 679 drm_gem_object_put_unlocked(obj);
680 680
681 return 0; 681 return 0;
682 682