aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorStuart Henderson <stuarth@opensource.cirrus.com>2019-05-20 10:06:27 +0100
committerLee Jones <lee.jones@linaro.org>2019-07-02 12:11:31 +0100
commit323250166d4ebbb927a68a6387887f6f59d5da4d (patch)
tree6b8c01ebba3ee10d395d905330a00e90f83902a0 /drivers/mfd
parentmfd: madera: Fix bad reference to pinctrl.txt file (diff)
downloadlinux-dev-323250166d4ebbb927a68a6387887f6f59d5da4d.tar.xz
linux-dev-323250166d4ebbb927a68a6387887f6f59d5da4d.zip
mfd: madera: Fix potential uninitialised use of variable
regmap_read won't set val to anything if an ACKed bus fails. Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/madera-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
index 826b971ccb86..dcc5c28925f2 100644
--- a/drivers/mfd/madera-core.c
+++ b/drivers/mfd/madera-core.c
@@ -139,7 +139,7 @@ EXPORT_SYMBOL_GPL(madera_name_from_type);
static int madera_wait_for_boot(struct madera *madera)
{
ktime_t timeout;
- unsigned int val;
+ unsigned int val = 0;
int ret = 0;
/*