summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/pmic8xxx-pwrkey.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-12-17 09:03:05 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-12-27 17:18:23 -0800
commite77a715ac3af14d16c027caebdb0ce5412976b9e (patch)
tree093d942d486b8923c44cd8b809dca033879f1cc9 /drivers/input/misc/pmic8xxx-pwrkey.c
parentee65d4b36de8ddf4467f788faa5d8ddd1bfcdaa2 (diff)
downloadop-kernel-dev-e77a715ac3af14d16c027caebdb0ce5412976b9e.zip
op-kernel-dev-e77a715ac3af14d16c027caebdb0ce5412976b9e.tar.gz
Input: pmic8xxx-pwrkey - pass correct device identity to free_irq()
free_irq() in the error handling case is missing when change pass input device directly to interrupt. Fixes: b27f8fee4965('Input: pmic8xxx-pwrkey - pass input device directly to interrupt') Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/pmic8xxx-pwrkey.c')
-rw-r--r--drivers/input/misc/pmic8xxx-pwrkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/pmic8xxx-pwrkey.c b/drivers/input/misc/pmic8xxx-pwrkey.c
index ef93840..3914e5b 100644
--- a/drivers/input/misc/pmic8xxx-pwrkey.c
+++ b/drivers/input/misc/pmic8xxx-pwrkey.c
@@ -182,7 +182,7 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev)
return 0;
free_press_irq:
- free_irq(key_press_irq, pwrkey);
+ free_irq(key_press_irq, pwr);
unreg_input_dev:
input_unregister_device(pwr);
pwr = NULL;
OpenPOWER on IntegriCloud