Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcc75971 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 4bfeefd0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);