提交 8c7c6cad 编写于 作者: S Sean Young 提交者: Mauro Carvalho Chehab

[media] staging: sir: make sure we are ready to receive interrupts

Ensure that the timer is ready before we request interrupts.
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 4d7cf7ec
......@@ -325,6 +325,8 @@ static int init_port(void)
{
int retval;
setup_timer(&timerlist, sir_timeout, 0);
/* get I/O port access and IRQ line */
if (!request_region(io, 8, KBUILD_MODNAME)) {
pr_err("i/o port 0x%.4x already in use.\n", io);
......@@ -339,8 +341,6 @@ static int init_port(void)
}
pr_info("I/O port 0x%.4x, IRQ %d.\n", io, irq);
setup_timer(&timerlist, sir_timeout, 0);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册