Re: [PATCH] [v2] ASoC: wm97xx: fix uninitialized regmap pointer problem

2018-11-02 Thread Charles Keepax
On Fri, Nov 02, 2018 at 04:18:21PM +0100, Arnd Bergmann wrote: > gcc notices that without either the ac97 bus or the pdata, we never > initialize the regmap pointer, which leads to an uninitialized variable > access: > > sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe': >

Re: [PATCH] [v2] ASoC: wm97xx: fix uninitialized regmap pointer problem

2018-11-02 Thread Charles Keepax
On Fri, Nov 02, 2018 at 04:18:21PM +0100, Arnd Bergmann wrote: > gcc notices that without either the ac97 bus or the pdata, we never > initialize the regmap pointer, which leads to an uninitialized variable > access: > > sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe': >

[PATCH] [v2] ASoC: wm97xx: fix uninitialized regmap pointer problem

2018-11-02 Thread Arnd Bergmann
gcc notices that without either the ac97 bus or the pdata, we never initialize the regmap pointer, which leads to an uninitialized variable access: sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe': sound/soc/codecs/wm9712.c:666:2: error: 'regmap' may be used uninitialized in this

[PATCH] [v2] ASoC: wm97xx: fix uninitialized regmap pointer problem

2018-11-02 Thread Arnd Bergmann
gcc notices that without either the ac97 bus or the pdata, we never initialize the regmap pointer, which leads to an uninitialized variable access: sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe': sound/soc/codecs/wm9712.c:666:2: error: 'regmap' may be used uninitialized in this