提交 a05950a4 编写于 作者: D Dan Carpenter 提交者: Lee Jones

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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 e56e5ad6
......@@ -628,7 +628,7 @@ static int arizona_runtime_resume(struct device *dev)
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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册