diff options
author | Dan Carpenter | 2018-10-25 14:43:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-02-27 10:08:51 +0100 |
commit | 2990096c88cb6a2f70f5f15f3a9485e9f0e7a4df (patch) | |
tree | 8f17c77bfa35c7393c2318cab0578ef04a713f45 /drivers/mfd/bd9571mwv.c | |
parent | mfd: mt6397: Do not call irq_domain_remove if PMIC unsupported (diff) | |
download | kernel-qcow2-linux-2990096c88cb6a2f70f5f15f3a9485e9f0e7a4df.tar.gz kernel-qcow2-linux-2990096c88cb6a2f70f5f15f3a9485e9f0e7a4df.tar.xz kernel-qcow2-linux-2990096c88cb6a2f70f5f15f3a9485e9f0e7a4df.zip |
mfd: ab8500-core: Return zero in get_register_interruptible()
[ Upstream commit 10628e3ecf544fa2e4e24f8e112d95c37884dc98 ]
This function is supposed to return zero on success or negative error
codes on error. Unfortunately, there is a bug so it sometimes returns
non-zero, positive numbers on success.
I noticed this bug during review and I can't test it. It does appear
that the return is sometimes propogated back to _regmap_read() where all
non-zero returns are treated as failure so this may affect run time.
Fixes: 47c1697508f2 ("mfd: Align ab8500 with the abx500 interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd/bd9571mwv.c')
0 files changed, 0 insertions, 0 deletions