summaryrefslogtreecommitdiff
path: root/drivers/mfd/wm8350-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-19 01:12:08 +0300
committerSamuel Ortiz <samuel@sortiz.org>2009-01-04 14:17:42 +0300
commit53a0d99b1ef14f56baec06eec1e3dad031672b3a (patch)
treedbc7342f8b11ca7c0872798bebc430fb4bb6e3d3 /drivers/mfd/wm8350-core.c
parent96920630624868add3f63f596523e70dbb64549a (diff)
downloadlinux-53a0d99b1ef14f56baec06eec1e3dad031672b3a.tar.xz
mfd: Handle missing WM8350 platform data
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/mfd/wm8350-core.c')
-rw-r--r--drivers/mfd/wm8350-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c
index fa505ac76c84..03af3b12c020 100644
--- a/drivers/mfd/wm8350-core.c
+++ b/drivers/mfd/wm8350-core.c
@@ -1350,7 +1350,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
return ret;
}
- if (pdata->init) {
+ if (pdata && pdata->init) {
ret = pdata->init(wm8350);
if (ret != 0) {
dev_err(wm8350->dev, "Platform init() failed: %d\n",