提交 2a952d92 编写于 作者: S Sean Young 提交者: Mauro Carvalho Chehab

media: gpio-ir-tx: simplify wait logic

Do not handroll mdelay().
Suggested-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
上级 6c1c1eb8
......@@ -62,8 +62,13 @@ static void delay_until(ktime_t until)
return;
/* udelay more than 1ms may not work */
delta = min(delta, 1000);
if (delta >= 1000) {
mdelay(delta / 1000);
continue;
}
udelay(delta);
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册