mfd: Handle missing WM8350 platform data

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>

authored by

Mark Brown and committed by
Samuel Ortiz
53a0d99b 96920630

+1 -1
+1 -1
drivers/mfd/wm8350-core.c
··· 1350 1350 return ret; 1351 1351 } 1352 1352 1353 - if (pdata->init) { 1353 + if (pdata && pdata->init) { 1354 1354 ret = pdata->init(wm8350); 1355 1355 if (ret != 0) { 1356 1356 dev_err(wm8350->dev, "Platform init() failed: %d\n",