drm/mgag200: Replace mapping code with drm_gem_vram_{kmap/kunmap}()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 May 2019 08:26:26 +0000 (10:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 May 2019 14:17:08 +0000 (16:17 +0200)
commita75813435d82e213aef072bd668f049b1956dd13
treeeb4ca7e8d0ce80c615d64264d3835fa7d277e545
parent94668ac796a5de8864bfc1a34edd24f81f3e6a2c
drm/mgag200: Replace mapping code with drm_gem_vram_{kmap/kunmap}()

The mgag200 driver establishes several memory mappings for frame buffers
and cursors. This patch converts the driver to use the equivalent
drm_gem_vram_kmap() functions. It removes the dependencies on TTM
and cleans up the code.

v4:
* cleanups from checkpatch.pl

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20190508082630.15116-17-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/mgag200/mgag200_cursor.c
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/mgag200/mgag200_fb.c
drivers/gpu/drm/mgag200/mgag200_mode.c