[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)
commit9ef449c6b31bb6a8e6dedc24de475a3b8c79be20
tree03b61f0a0288416b83063099c15be28eead02ebe
parent9967232f1be5bab10c7b7a8dcf51ff5c3c1a6d77
[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