Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit 53a0d99b authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz
Browse files

mfd: Handle missing WM8350 platform data

parent 96920630
Branches
No related tags found
No related merge requests found
...@@ -1350,7 +1350,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq, ...@@ -1350,7 +1350,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
return ret; return ret;
} }
if (pdata->init) { if (pdata && pdata->init) {
ret = pdata->init(wm8350); ret = pdata->init(wm8350);
if (ret != 0) { if (ret != 0) {
dev_err(wm8350->dev, "Platform init() failed: %d\n", dev_err(wm8350->dev, "Platform init() failed: %d\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment