drm/mga: drop dependency on drm_os_linux.h
authorSam Ravnborg <sam@ravnborg.org>
Sun, 23 Jun 2019 10:35:39 +0000 (12:35 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 30 Jun 2019 07:48:04 +0000 (09:48 +0200)
commit91f85e8feb1b4703d8bad63cda603dacf2a825d4
tree50bcf82b1a3841f07295df5c4486e13288550d10
parent583bbf46133c726bae277e8f4e32bfba2a528c7f
drm/mga: drop dependency on drm_os_linux.h

Opencode all macros used from the deprecated drm_os_linux.h header file.
The DRM_WAIT_ON used 3 * HZ as timeout.
This was translated to 3000 msec.

The return value of mga_driver_fence_wait() was not
used, so make it return void to simplify code a bit.

v2:
- fixed timeout to 3000 msec (original value was 3 * Hz)
- drop unused return value from mga_driver_fence_wait()

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190623103542.30697-2-sam@ravnborg.org
drivers/gpu/drm/mga/mga_dma.c
drivers/gpu/drm/mga/mga_drv.h
drivers/gpu/drm/mga/mga_irq.c
drivers/gpu/drm/mga/mga_state.c