mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
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 <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
4653515dcb
commit
892fd791e7
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user