Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bochs: Replace drm_gem_object_unreference_unlocked with put function

This patch unifies the naming of DRM functions for reference counting
of struct drm_gem_object. The resulting code is more aligned with the
rest of the Linux kernel interfaces.

v2:
* rebase onto fbdev rework

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20180926113623.22679-1-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

authored by

Thomas Zimmermann and committed by
Gerd Hoffmann
a0d4d42c b256013e

+2 -2
+2 -2
drivers/gpu/drm/bochs/bochs_mm.c
··· 414 414 return ret; 415 415 416 416 ret = drm_gem_handle_create(file, gobj, &handle); 417 - drm_gem_object_unreference_unlocked(gobj); 417 + drm_gem_object_put_unlocked(gobj); 418 418 if (ret) 419 419 return ret; 420 420 ··· 454 454 bo = gem_to_bochs_bo(obj); 455 455 *offset = bochs_bo_mmap_offset(bo); 456 456 457 - drm_gem_object_unreference_unlocked(obj); 457 + drm_gem_object_put_unlocked(obj); 458 458 return 0; 459 459 }