Skip to content

Commit 3071e9d

Browse files
sredtor
authored andcommitted
Input: twl4030-pwrbutton - use correct device for irq request
The interrupt should be requested for the platform device and not for the input device. Fixes: 7f9ce64 ("Input: twl4030-pwrbutton - simplify driver using devm_*") Signed-off-by: Sebastian Reichel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent e55057e commit 3071e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/twl4030-pwrbutton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
7070
pwr->phys = "twl4030_pwrbutton/input0";
7171
pwr->dev.parent = &pdev->dev;
7272

73-
err = devm_request_threaded_irq(&pwr->dev, irq, NULL, powerbutton_irq,
73+
err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq,
7474
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING |
7575
IRQF_ONESHOT,
7676
"twl4030_pwrbutton", pwr);

0 commit comments

Comments
 (0)