Browse Source

mfd: arizona: Signedness bug in arizona_runtime_suspend()

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>
Dan Carpenter 9 năm trước cách đây
mục cha
commit
a05950a445
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/mfd/arizona-core.c

+ 1 - 1
drivers/mfd/arizona-core.c

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