From: Maxim Levitsky Date: Mon, 6 Sep 2010 21:26:07 +0000 (-0300) Subject: [media] IR: make sure we register the input device when it is safe to do so X-Git-Tag: v2.6.37-rc1~64^2~198 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b3dd449feaa997129bde23592c6a31da039e4e;p=pandora-kernel.git [media] IR: make sure we register the input device when it is safe to do so As soon as input device is registered, it might be accessed (and it is) This can trigger a hardware interrupt that can access not yet initialized ir->raw, (by sending a sample) This can be reproduced by holding down a remote button and reloading the module. And this always crashes the systems where hardware decides to send an interrupt right at the moment it is enabled. Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed