diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-04-22 10:47:29 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-01 03:45:58 (GMT) |
commit | b48d13988bee440e43a510ea8878f1f329cee189 (patch) | |
tree | 6c5c0bc7c96f3073f16e8daede684266a7625bf3 /drivers | |
parent | f5727cd31283aa478f7f9396c6eb7b5aceebb869 (diff) | |
download | linux-b48d13988bee440e43a510ea8878f1f329cee189.tar.xz |
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')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
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 |