]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc: Postpone ISR registration
authorLuis Henriques <luis.henriques@canonical.com>
Sat, 21 Apr 2012 15:25:21 +0000 (12:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Apr 2012 18:41:16 +0000 (15:41 -0300)
commitc78b183ca5d427ba5e7221d514e4dd5389493840
tree03b61f0a0288416b83063099c15be28eead02ebe
parent08cb8d2682f27ea1c760860f46468f3cc34d89e5
[media] rc: Postpone ISR registration

An early registration of an ISR was causing a crash to several users (for
example, with the ite-cir driver: http://bugs.launchpad.net/bugs/972723).
The reason was that IRQs were being triggered before a driver
initialisation was completed.

This patch fixes this by moving the invocation to request_irq() and to
request_region() to a later stage on the driver probe function.

Cc: <stable@vger.kernel.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ene_ir.c
drivers/media/rc/fintek-cir.c
drivers/media/rc/ite-cir.c
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/winbond-cir.c