From: Dmitry Torokhov Date: Tue, 19 Apr 2016 16:54:32 +0000 (-0700) Subject: Input: twl4030-vibra - do not reparent to grandparent X-Git-Tag: v5.15~74^2~439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcc7597116c6713353522eb13c765063ff88bb89;p=platform%2Fkernel%2Flinux-starfive.git 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 --- 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);