summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2012-02-20 16:13:43 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-06 18:46:34 +0100
commitd2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b (patch)
treeb9f95b39534cd0721d6a8659a793a83ed28677d8 /drivers/mfd
parentb4a6dbd5b7bad00ee4004443287468abddb96538 (diff)
downloadop-kernel-dev-d2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b.zip
op-kernel-dev-d2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b.tar.gz
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm8350-irq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/wm8350-irq.c b/drivers/mfd/wm8350-irq.c
index 8a1fafd..9fd01bf 100644
--- a/drivers/mfd/wm8350-irq.c
+++ b/drivers/mfd/wm8350-irq.c
@@ -496,7 +496,6 @@ int wm8350_irq_init(struct wm8350 *wm8350, int irq,
mutex_init(&wm8350->irq_lock);
wm8350->chip_irq = irq;
- wm8350->irq_base = pdata->irq_base;
if (pdata && pdata->irq_base > 0)
irq_base = pdata->irq_base;
OpenPOWER on IntegriCloud