diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-04-17 05:20:32 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-04-17 05:24:52 -0700 |
commit | ca3704c23a3b3dfc9d721cf21953fd6b3cbfc3e0 (patch) | |
tree | 668033bc91028298431b37adb6f1513f5320fa8b /drivers/input/misc | |
parent | 7eb5ca09e48ec671586218ec4f381c43d534f2f4 (diff) | |
download | talos-obmc-linux-ca3704c23a3b3dfc9d721cf21953fd6b3cbfc3e0.tar.gz talos-obmc-linux-ca3704c23a3b3dfc9d721cf21953fd6b3cbfc3e0.zip |
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>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/arizona-haptics.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/arizona-haptics.c b/drivers/input/misc/arizona-haptics.c index d5994a745ffa..982936334537 100644 --- a/drivers/input/misc/arizona-haptics.c +++ b/drivers/input/misc/arizona-haptics.c @@ -178,7 +178,6 @@ static int arizona_haptics_probe(struct platform_device *pdev) input_set_drvdata(haptics->input_dev, haptics); haptics->input_dev->name = "arizona:haptics"; - haptics->input_dev->dev.parent = pdev->dev.parent; haptics->input_dev->close = arizona_haptics_close; __set_bit(FF_RUMBLE, haptics->input_dev->ffbit); |