29 Oct
2013
29 Oct
'13
6:35 p.m.
On Tue, Oct 29, 2013 at 05:06:27PM +0800, Nicolin Chen wrote:
When using DT binding to pass private data, there would be Kernel panic occuring due to NULL pointer access in wm8962_i2c_probe(). Thus fix it.
Applied, thanks, so it makes v3.13 though...
- for (i = 0; i < ARRAY_SIZE(pdata->gpio_init); i++)
if (pdata->gpio_init[i]) {
- for (i = 0; i < ARRAY_SIZE(wm8962->pdata.gpio_init); i++)
if (wm8962->pdata.gpio_init[i]) {
...it'd be neater to just ensure that pdata is always initialised.