summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-04-22 12:47:29 +0200
committerMark Brown <broonie@linaro.org>2014-04-30 20:45:58 -0700
commitb48d13988bee440e43a510ea8878f1f329cee189 (patch)
tree6c5c0bc7c96f3073f16e8daede684266a7625bf3 /drivers/base
parentf5727cd31283aa478f7f9396c6eb7b5aceebb869 (diff)
downloadop-kernel-dev-b48d13988bee440e43a510ea8878f1f329cee189.zip
op-kernel-dev-b48d13988bee440e43a510ea8878f1f329cee189.tar.gz
regmap: Add missing initialization of this_page
drivers/base/regmap/regmap.c: In function ‘_regmap_range_multi_paged_reg_write’: drivers/base/regmap/regmap.c:1665: warning: ‘this_page’ may be used uninitialized in this function Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 9596f30..3586975 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -1665,7 +1665,7 @@ static int _regmap_range_multi_paged_reg_write(struct regmap *map,
int ret;
int i, n;
struct reg_default *base;
- unsigned int this_page;
+ unsigned int this_page = 0;
/*
* the set of registers are not neccessarily in order, but
* since the order of write must be preserved this algorithm
OpenPOWER on IntegriCloud