summaryrefslogtreecommitdiff
path: root/include/uapi/drm/drm.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-07-11 11:56:32 +0200
committerInki Dae <inki.dae@samsung.com>2014-10-15 20:05:15 +0900
commit501378f9392e105f5a56beef76884b8a2560b2d9 (patch)
tree90674eb74a311d285d95bc723897f855e399ac8b /include/uapi/drm/drm.h
parentfefc1534616f244ed9fe9c540ec40adcb6f3ab7e (diff)
downloadlinux-3.10-501378f9392e105f5a56beef76884b8a2560b2d9.tar.gz
linux-3.10-501378f9392e105f5a56beef76884b8a2560b2d9.tar.bz2
linux-3.10-501378f9392e105f5a56beef76884b8a2560b2d9.zip
drm/gem: simplify object initialization
drm_gem_object_init() and drm_gem_private_object_init() do exactly the same (except for shmem alloc) so make the first use the latter to reduce code duplication. Also drop the return code from drm_gem_private_object_init(). It seems unlikely that we will extend it any time soon so no reason to keep it around. This simplifies code paths in drivers, too. Last but not least, fix gma500 to call drm_gem_object_release() before freeing objects that were allocated via drm_gem_private_object_init(). That isn't actually necessary for now, but might be in the future. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Acked-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'include/uapi/drm/drm.h')
0 files changed, 0 insertions, 0 deletions