summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2016-04-19 18:50:09 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-04-20 23:39:45 +0200
commit4bfeefd085acf1ab70ecda6087fad6c32b2b065f (patch)
tree52b63551a65ffcbf385490e7101eb45e07170258
parentInput: twl6040-vibra - ignore return value of schedule_work (diff)
downloadlinux-4bfeefd085acf1ab70ecda6087fad6c32b2b065f.tar.xz
linux-4bfeefd085acf1ab70ecda6087fad6c32b2b065f.zip
Input: twl6040-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. Tested-by: "H. Nikolaus Schaller" <hns@goldelico.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/misc/twl6040-vibra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/twl6040-vibra.c b/drivers/input/misc/twl6040-vibra.c
index 0c853c2c57f8..53e33fab3f7a 100644
--- a/drivers/input/misc/twl6040-vibra.c
+++ b/drivers/input/misc/twl6040-vibra.c
@@ -357,7 +357,6 @@ static int twl6040_vibra_probe(struct platform_device *pdev)
info->input_dev->name = "twl6040:vibrator";
info->input_dev->id.version = 1;
- info->input_dev->dev.parent = pdev->dev.parent;
info->input_dev->close = twl6040_vibra_close;
__set_bit(FF_RUMBLE, info->input_dev->ffbit);