Messages in this thread | | | Date | Mon, 8 Apr 2013 11:57:54 +0200 | From | Samuel Ortiz <> | Subject | Re: [PATCH v2] mfd: wm8994: silence bogus warning in wm8994_device_init() |
| |
Hi Jingoo,
On Wed, Feb 20, 2013 at 11:53:36AM +0900, Jingoo Han wrote: > 'patch_regs' cannot be used uninitialized in wm8994_device_init(), > because 'patch_regs' was already guarded by 'regmap_patch'. > Thus, that's a bogus warning. > > Without this patch, the build warning happens as below: > > drivers/mfd/wm8994-core.c: In function 'wm8994_i2c_probe': > drivers/mfd/wm8994-core.c:595:7: warning: 'patch_regs' may be used uninitialized in this function [-Wuninitialized] > drivers/mfd/wm8994-core.c:408:14: note: 'patch_regs' was declared here > > Signed-off-by: Jingoo Han <jg1.han@samsung.com> > --- > drivers/mfd/wm8994-core.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks.
Cheers, Samuel.
-- Intel Open Source Technology Centre http://oss.intel.com/
| |