From: Stephen Rothwell Date: Mon, 25 Jul 2011 01:13:13 +0000 (+1000) Subject: gma500: udlay(20000) is too large X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=933b44732caad0c3b65224453c54846c75d97936;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git gma500: udlay(20000) is too large So use mdelay(20) instead. Fixes this build error: ERROR: "__bad_udelay" [drivers/staging/gma500/psb_gfx.ko] undefined! Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/drivers/staging/gma500/psb_intel_display.c b/drivers/staging/gma500/psb_intel_display.c index 4f47d09d65de..09e378d5ddcb 100644 --- a/drivers/staging/gma500/psb_intel_display.c +++ b/drivers/staging/gma500/psb_intel_display.c @@ -331,7 +331,7 @@ static bool psb_intel_find_best_PLL(struct drm_crtc *crtc, int target, void psb_intel_wait_for_vblank(struct drm_device *dev) { /* Wait for 20ms, i.e. one cycle at 50hz. */ - udelay(20000); + mdelay(20); } int psb_intel_pipe_set_base(struct drm_crtc *crtc,