diff options
author | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2017-04-28 13:25:51 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-05-01 12:29:08 -0400 |
commit | 3071e9dd6cd3f2290d770117330f2c8b2e9a97e4 (patch) | |
tree | 0207209559f1bb5359f2e45e77590c79951f33b6 | |
parent | e55057e82ad413603fd45eac3b83b80acde780e1 (diff) |
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: 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>
-rw-r--r-- | drivers/input/misc/twl4030-pwrbutton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 54162d2cbcfc..7c4504c31b07 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c | |||
@@ -70,7 +70,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) | |||
70 | pwr->phys = "twl4030_pwrbutton/input0"; | 70 | pwr->phys = "twl4030_pwrbutton/input0"; |
71 | pwr->dev.parent = &pdev->dev; | 71 | pwr->dev.parent = &pdev->dev; |
72 | 72 | ||
73 | err = devm_request_threaded_irq(&pwr->dev, irq, NULL, powerbutton_irq, | 73 | err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq, |
74 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING | | 74 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING | |
75 | IRQF_ONESHOT, | 75 | IRQF_ONESHOT, |
76 | "twl4030_pwrbutton", pwr); | 76 | "twl4030_pwrbutton", pwr); |