OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d7cf7e
)
[media] staging: sir: make sure we are ready to receive interrupts
author
Sean Young
<sean@mess.org>
Sat, 25 Mar 2017 11:45:38 +0000
(08:45 -0300)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Wed, 5 Apr 2017 17:50:15 +0000
(14:50 -0300)
Ensure that the timer is ready before we request interrupts.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/lirc/lirc_sir.c
patch
|
blob
|
history
diff --git
a/drivers/staging/media/lirc/lirc_sir.c
b/drivers/staging/media/lirc/lirc_sir.c
index
181ac63
..
e12ec50
100644
(file)
--- a/
drivers/staging/media/lirc/lirc_sir.c
+++ b/
drivers/staging/media/lirc/lirc_sir.c
@@
-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;
}