drm/gma500: Move GTT memory-range setup into helper
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 8 Mar 2022 19:52:22 +0000 (20:52 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 16 Mar 2022 16:42:24 +0000 (17:42 +0100)
commit07739597b4d0eae539c9020ea321f636afd878ee
tree57772441cc3599125be06aff6924247b8d9abf75
parent5169f3592d48be8fd84b2a9e23c07a1c2977d19c
drm/gma500: Move GTT memory-range setup into helper

Move the setup code for GTT/GATT memory ranges into a new helper and
call the function from psb_gtt_init() and psb_gtt_resume(). Removes
code duplication.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220308195222.13471-13-tzimmermann@suse.de
drivers/gpu/drm/gma500/gtt.c