]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
media: rc: Postpone ISR registration
authorLuis Henriques <luis.henriques@canonical.com>
Sat, 21 Apr 2012 15:25:21 +0000 (12:25 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 17:46:18 +0000 (10:46 -0700)
commitb24745b32431b81ae006bdaf75bac6a30d31b31b
treeb5002aa8eec5607806149f7e16de6aa777610810
parent817a2eb566911b127a57cf3561bb88c98e4b6348
media: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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