Skip to content

Commit 0c64117

Browse files
committed
Input: da9063_onkey - avoid explicitly setting input's parent
devm_input_allocate_device() already sets parent of the new input device, there's no need to set it up explicitly. Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/ZYOseYfVgg0Ve6Zl@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent ec4fcc6 commit 0c64117

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/input/misc/da9063_onkey.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ static int da9063_onkey_probe(struct platform_device *pdev)
211211
snprintf(onkey->phys, sizeof(onkey->phys), "%s/input0",
212212
onkey->config->name);
213213
onkey->input->phys = onkey->phys;
214-
onkey->input->dev.parent = &pdev->dev;
215214

216215
input_set_capability(onkey->input, EV_KEY, KEY_POWER);
217216

0 commit comments

Comments
 (0)