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 <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2026-10-07 23:19:55 -07:00
parent 0e9c121b32
commit 4653515dcb

View File

@ -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 |