]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76024f6e26de8ac9af166888d3fef1c31a17fe5f
tree80a38c05a787047337557a85b3a6e7aad602062a
parent0e38082809912ff57cfd2890d37a76ff2ebecf2f
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