Input: bfin_rotary - fix potential oops in interrupt handler
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 11 Feb 2015 01:47:04 +0000 (17:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 16 Feb 2015 00:06:04 +0000 (16:06 -0800)
commit7694f44d63c61883fefba6e8ad12075f17d3ebd3
tree80a38c05a787047337557a85b3a6e7aad602062a
parentbfa76d49576599a4b9f9b7a71f23d73d6dcff735
Input: bfin_rotary - fix potential oops in interrupt handler

The interrupt handler in the driver tries to fetch driver data from
platform device, unfortunately it is only set up after interrupt handler
is registered. Since interrupt handler does not really need to access
the platform device itself let's change it to get the driver data
instance instead.

Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/bfin_rotary.c