mfd: arizona: Signedness bug in arizona_runtime_suspend()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Oct 2015 10:18:05 +0000 (13:18 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 30 Oct 2015 18:56:58 +0000 (18:56 +0000)
The "jd_active" variable needs to be signed for the error handling to
work.

Fixes: 143e5887ae57 ('mfd: arizona: factor out checking of jack detection state')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c

index 4e49210f7a5b82ae5e5f1948b9f8ddb1860116e1..d474732cc65c80becb53ae93cb3b3699564d4cf0 100644 (file)
@@ -628,7 +628,7 @@ err:
 static int arizona_runtime_suspend(struct device *dev)
 {
        struct arizona *arizona = dev_get_drvdata(dev);
-       unsigned int jd_active = 0;
+       int jd_active = 0;
        int ret;
 
        dev_dbg(arizona->dev, "Entering AoD mode\n");