From 0e9c121b32457cdaf9393785aa306eafb741250d Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 7 Oct 2026 23:19:54 -0700 Subject: [PATCH] Input: tps65218-pwrbutton - drop redundant idev->dev.parent assignment devm_input_allocate_device() already initializes idev->dev.parent to the supplied parent device, so the explicit assignment in tps6521x_pb_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov --- drivers/input/misc/tps65218-pwrbutton.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/tps65218-pwrbutton.c b/drivers/input/misc/tps65218-pwrbutton.c index fc450fce0932..5c4de3a285d5 100644 --- a/drivers/input/misc/tps65218-pwrbutton.c +++ b/drivers/input/misc/tps65218-pwrbutton.c @@ -105,7 +105,6 @@ static int tps6521x_pb_probe(struct platform_device *pdev) snprintf(pwr->phys, sizeof(pwr->phys), "%s/input0", pwr->data->name); idev->phys = pwr->phys; - idev->dev.parent = dev; idev->id.bustype = BUS_I2C; input_set_capability(idev, EV_KEY, KEY_POWER);