drivers/gpu/drm/radeon/atom.c: fix warning
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 23 May 2011 21:48:32 +0000 (14:48 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 23 May 2011 23:00:37 +0000 (09:00 +1000)
commit2ec8a5feaf3000bf4f9744d0caad0d5f12ce1409
tree6a908fca57ff91b138302d9434b649250926fd3b
parentd19c37a5809cd425caf989d45eb5e5eb68d17d99
drivers/gpu/drm/radeon/atom.c: fix warning

udelay() doesn't like 8-bit arguments:

drivers/gpu/drm/radeon/atom.c: In function 'atom_op_delay':
drivers/gpu/drm/radeon/atom.c:653: warning: comparison is always false due to limited range of data type

while we're there, use msleep() rather than open-coding it.

Cc: David Airlie <airlied@linux.ie>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c