mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
0e9c121b32
commit
4653515dcb
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user