]> git.baikalelectronics.ru Git - kernel.git/commit
Input: arizona-haptic - don't assign input_dev parent
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Sun, 17 Apr 2016 12:20:32 +0000 (05:20 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Apr 2016 12:24:52 +0000 (05:24 -0700)
commitd39cef134b430b0f2809bf62278fc51d4e9abd7e
tree668033bc91028298431b37adb6f1513f5320fa8b
parent8fe61262d4daaa6f89fd601a5ae895c4b54c9698
Input: arizona-haptic - don't assign input_dev parent

We shouldn't assign the parent device of the input_dev to be the
parent MFD device, because this will be used for devres which causes
input_unregister_device to run after the haptics device has been
removed, since it is itself a child of the MFD device. The default
of using the haptics device itself as the parent is correct.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/arizona-haptics.c