diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-04-19 09:54:32 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-04-20 14:39:46 -0700 |
commit | dcc7597116c6713353522eb13c765063ff88bb89 (patch) | |
tree | fee9ffd45cb48a154092c71214d094cdea280f99 /drivers/input/misc | |
parent | 4bfeefd085acf1ab70ecda6087fad6c32b2b065f (diff) | |
download | op-kernel-dev-dcc7597116c6713353522eb13c765063ff88bb89.zip op-kernel-dev-dcc7597116c6713353522eb13c765063ff88bb89.tar.gz |
Input: twl4030-vibra - do not reparent to grandparent
For devm-managed input devices we should not modify input device's parent,
otherwise automatic release of resources will not work properly.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/twl4030-vibra.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index 10c4e3d..caa5a62 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c @@ -222,7 +222,6 @@ static int twl4030_vibra_probe(struct platform_device *pdev) info->input_dev->name = "twl4030:vibrator"; info->input_dev->id.version = 1; - info->input_dev->dev.parent = pdev->dev.parent; info->input_dev->close = twl4030_vibra_close; __set_bit(FF_RUMBLE, info->input_dev->ffbit); |