commit | 53a0d99b1ef14f56baec06eec1e3dad031672b3a | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | Thu Dec 18 23:12:08 2008 +0100 |
committer | Samuel Ortiz <samuel@sortiz.org> | Sun Jan 04 12:17:42 2009 +0100 |
tree | dbc7342f8b11ca7c0872798bebc430fb4bb6e3d3 | |
parent | 96920630624868add3f63f596523e70dbb64549a [diff] |
mfd: Handle missing WM8350 platform data Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c index fa505ac..03af3b1 100644 --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c
@@ -1350,7 +1350,7 @@ 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",