drm/vram-helper: Integrate drm_gem_vram_init() into drm_gem_vram_create()
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 22 Sep 2020 14:56:58 +0000 (16:56 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 25 Sep 2020 09:20:47 +0000 (11:20 +0200)
commit7faa92dfdf426db40740f59fcdfce48e5cfb7210
treef9b319ac76c86c3fead20dddb54ecc2a97070eec
parentd693def4fd1c23f1ca5aed1afb9993b3a2069ad2
drm/vram-helper: Integrate drm_gem_vram_init() into drm_gem_vram_create()

The drm_gem_vram_create() function is the only caller of the internal
helper drm_gem_vram_init(). Streamline the code by putting all code into
the create function.

v2:
* rebased onto latest drm-tip
* fixed typo in commit message (Sam)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200922145700.25413-2-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c