From 4653515dcb566d9140ab83bce54899e3323e2d83 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 7 Oct 2026 23:19:55 -0700 Subject: [PATCH] Input: twl4030-pwrbutton - drop redundant pwr->dev.parent assignment devm_input_allocate_device() already initializes pwr->dev.parent to the supplied parent device, so the explicit assignment in twl4030_pwrbutton_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov --- drivers/input/misc/twl4030-pwrbutton.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 3e94a5995766..949d57f32958 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c @@ -90,7 +90,6 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) input_set_capability(pwr, EV_KEY, KEY_POWER); pwr->name = "twl4030_pwrbutton"; pwr->phys = "twl4030_pwrbutton/input0"; - pwr->dev.parent = &pdev->dev; err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq, IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING |