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>
Mon, 20 Feb 2012 15:18:47 +0000 (16:18 +0100)
commitaa12242f19312b2c60399bd581929fdfc511a017
tree3cce0d914d0921f7ede761cb80571f30dfb24a3f
parentb01543dfe67bb1d191998e90d20534dc354de059
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