Commit bc9f1007 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Patrik Jakobsson

drm/gma500: drop use of DRM_UDELAY wrapper

The DRM_UDELAY wrapper from drm_os_linux.h is used in a few places,
all other places calls udelay() with no wrapper.

There is no reason to continue to use this wrapper - so drop it
and direct call udelay().
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190519195526.3422-5-sam@ravnborg.org
parent 5ffa31ed
...@@ -344,7 +344,7 @@ static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum) ...@@ -344,7 +344,7 @@ static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum)
if (pipenum == 1) { if (pipenum == 1) {
/* restore palette (gamma) */ /* restore palette (gamma) */
/*DRM_UDELAY(50000); */ /* udelay(50000); */
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
PSB_WVDC32(pipe->palette[i], map->palette + (i << 2)); PSB_WVDC32(pipe->palette[i], map->palette + (i << 2));
...@@ -406,7 +406,7 @@ static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum) ...@@ -406,7 +406,7 @@ static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum)
PSB_WVDC32(pipe->conf, map->conf); PSB_WVDC32(pipe->conf, map->conf);
/* restore palette (gamma) */ /* restore palette (gamma) */
/*DRM_UDELAY(50000); */ /* udelay(50000); */
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
PSB_WVDC32(pipe->palette[i], map->palette + (i << 2)); PSB_WVDC32(pipe->palette[i], map->palette + (i << 2));
......
...@@ -327,7 +327,7 @@ static int oaktrail_restore_display_registers(struct drm_device *dev) ...@@ -327,7 +327,7 @@ static int oaktrail_restore_display_registers(struct drm_device *dev)
/* Actually enable it */ /* Actually enable it */
PSB_WVDC32(p->dpll, MRST_DPLL_A); PSB_WVDC32(p->dpll, MRST_DPLL_A);
DRM_UDELAY(150); udelay(150);
/* Restore mode */ /* Restore mode */
PSB_WVDC32(p->htotal, HTOTAL_A); PSB_WVDC32(p->htotal, HTOTAL_A);
......
...@@ -815,7 +815,7 @@ void oaktrail_hdmi_restore(struct drm_device *dev) ...@@ -815,7 +815,7 @@ void oaktrail_hdmi_restore(struct drm_device *dev)
PSB_WVDC32(hdmi_dev->saveDPLL_ADJUST, DPLL_ADJUST); PSB_WVDC32(hdmi_dev->saveDPLL_ADJUST, DPLL_ADJUST);
PSB_WVDC32(hdmi_dev->saveDPLL_UPDATE, DPLL_UPDATE); PSB_WVDC32(hdmi_dev->saveDPLL_UPDATE, DPLL_UPDATE);
PSB_WVDC32(hdmi_dev->saveDPLL_CLK_ENABLE, DPLL_CLK_ENABLE); PSB_WVDC32(hdmi_dev->saveDPLL_CLK_ENABLE, DPLL_CLK_ENABLE);
DRM_UDELAY(150); udelay(150);
/* pipe */ /* pipe */
PSB_WVDC32(pipeb->src, PIPEBSRC); PSB_WVDC32(pipeb->src, PIPEBSRC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment