]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Input: twl4030-pwrbutton - use correct device for irq request
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Fri, 28 Apr 2017 17:25:51 +0000 (10:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 1 May 2017 16:29:08 +0000 (09:29 -0700)
The interrupt should be requested for the platform device
and not for the input device.

Fixes: 7f9ce649d267 ("Input: twl4030-pwrbutton - simplify driver using devm_*")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/twl4030-pwrbutton.c

index 54162d2cbcfce2ef48aa55dc1bfaaddb531d20c0..7c4504c31b0748250dbac66dae69e9a87b0c2fb8 100644 (file)
@@ -70,7 +70,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
        pwr->phys = "twl4030_pwrbutton/input0";
        pwr->dev.parent = &pdev->dev;
 
-       err = devm_request_threaded_irq(&pwr->dev, irq, NULL, powerbutton_irq,
+       err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq,
                        IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING |
                        IRQF_ONESHOT,
                        "twl4030_pwrbutton", pwr);