From 892fd791e7b7af74716fb724d74f70328db4b7b7 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 7 Oct 2026 23:19:55 -0700 Subject: [PATCH] Input: wm831x-on - drop redundant wm831x_on->dev->dev.parent assignment devm_input_allocate_device() already initializes wm831x_on->dev->dev.parent to the supplied parent device, so the explicit assignment in wm831x_on_probe() is redundant. Remove it. Assisted-by: LLM Signed-off-by: Dmitry Torokhov --- drivers/input/misc/wm831x-on.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/wm831x-on.c b/drivers/input/misc/wm831x-on.c index 18eb319bc6f7..a885873bcbd8 100644 --- a/drivers/input/misc/wm831x-on.c +++ b/drivers/input/misc/wm831x-on.c @@ -96,7 +96,6 @@ static int wm831x_on_probe(struct platform_device *pdev) wm831x_on->dev->keybit[BIT_WORD(KEY_POWER)] = BIT_MASK(KEY_POWER); wm831x_on->dev->name = "wm831x_on"; wm831x_on->dev->phys = "wm831x_on/input0"; - wm831x_on->dev->dev.parent = &pdev->dev; ret = request_threaded_irq(irq, NULL, wm831x_on_irq, IRQF_TRIGGER_RISING | IRQF_ONESHOT,