diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/wm8350-core.c | 2 |
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, | |||
1350 | return ret; | 1350 | return ret; |
1351 | } | 1351 | } |
1352 | 1352 | ||
1353 | if (pdata->init) { | 1353 | if (pdata && pdata->init) { |
1354 | ret = pdata->init(wm8350); | 1354 | ret = pdata->init(wm8350); |
1355 | if (ret != 0) { | 1355 | if (ret != 0) { |
1356 | dev_err(wm8350->dev, "Platform init() failed: %d\n", | 1356 | dev_err(wm8350->dev, "Platform init() failed: %d\n", |