Skip to content

Commit

Permalink
Input: twl6040-vibra - do not reparent to grandparent
Browse files Browse the repository at this point in the history
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" <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
dtor committed Apr 20, 2016
1 parent 5f7fb6f commit 4bfeefd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/misc/twl6040-vibra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4bfeefd

Please sign in to comment.