mfd: wm8350 variable dereferenced before check
authorJonghwan Choi <jhbird.choi@samsung.com>
Mon, 20 Feb 2012 15:13:43 +0000 (16:13 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:34 +0000 (18:46 +0100)
commitd2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b
treeb9f95b39534cd0721d6a8659a793a83ed28677d8
parentb4a6dbd5b7bad00ee4004443287468abddb96538
mfd: wm8350 variable dereferenced before check

Remove "wm8350->irq_base = pdata->irq_base" to avoid
null pointer exception and wm8350->irq_base got from
irq_alloc_descs().

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-irq.c