From: Dmitry Torokhov Date: Tue, 6 Mar 2012 17:10:21 +0000 (-0800) Subject: Input: max8925_onkey - avoid accessing input device too early X-Git-Tag: v3.4-rc1~130^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=104a5f3cad8f2f27cadbdf0029400ecd9e17ccc0;p=pandora-kernel.git Input: max8925_onkey - avoid accessing input device too early Input device must be allocated (but not necessarily registered) before requesting IRQs, otherwise there is a chance that IRQ handler fires and tries to reference not yet allocated input device. Also it makes sense to store relative IRQ numbers in max8925_onkey_info structure as they are needed in suspend/resume which we expect to be called more often than probe and remove. Acked-by: Haojian Zhuang Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed