浏览代码

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>
Dmitry Torokhov 9 年之前
父节点
当前提交
4bfeefd085
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/input/misc/twl6040-vibra.c

+ 0 - 1
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->name = "twl6040:vibrator";
 	info->input_dev->id.version = 1;
 	info->input_dev->id.version = 1;
-	info->input_dev->dev.parent = pdev->dev.parent;
 	info->input_dev->close = twl6040_vibra_close;
 	info->input_dev->close = twl6040_vibra_close;
 	__set_bit(FF_RUMBLE, info->input_dev->ffbit);
 	__set_bit(FF_RUMBLE, info->input_dev->ffbit);