]> Pileus Git - ~andy/linux/commitdiff
Input: pmic8xxx-pwrkey - pass correct device identity to free_irq()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 17 Dec 2013 17:03:05 +0000 (09:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 28 Dec 2013 01:18:23 +0000 (17:18 -0800)
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>
drivers/input/misc/pmic8xxx-pwrkey.c

index ef938405a9c6c1ffdc04859be97f791e813da28e..3914e5ba05a1a8b283c0f0fad5d2af801b0ed92c 100644 (file)
@@ -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;