rc: Postpone ISR registration
authorLuis Henriques <luis.henriques@canonical.com>
Sat, 21 Apr 2012 15:25:21 +0000 (12:25 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 May 2012 21:56:40 +0000 (22:56 +0100)
commit584f5ceeea1df933a89ceb18592b0e28349fd4fe
treeccf1dc2e8cd34a6fab74e10e81ac1738118f0186
parent6f00c2014c321fcb7574583b4df796ca40e5ddcf
rc: Postpone ISR registration

commit 9ef449c6b31bb6a8e6dedc24de475a3b8c79be20 upstream.

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.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
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