Input: walkera0701 - fix crash on startup
authorPeter Popovec <popovec@oko.fei.tuke.sk>
Sat, 15 Dec 2012 06:57:25 +0000 (22:57 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 17 Dec 2012 06:02:51 +0000 (22:02 -0800)
commita455e2985f57e2a71566bb8850094af38b2c932d
tree0504636d0a03a6a1d674ab630768a10eac1df2e8
parentda5ee074ce8e07b9a91596de3576b59990c0c8c6
Input: walkera0701 - fix crash on startup

The driver's timer must be set up before enabling IRQ handler, otherwise
bad things may happen.

Reported-and-tested-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Popovec <popovec@fei.tuke.sk>
CC: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/walkera0701.c