Commit cb9b2245 authored by Dan Carpenter's avatar Dan Carpenter Committed by Samuel Ortiz

mfd: Fix incorrect error check for wm8350-core

It was *pdev which was allocated not pdev.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 89f5f9f7
...@@ -537,7 +537,7 @@ static void wm8350_client_dev_register(struct wm8350 *wm8350, ...@@ -537,7 +537,7 @@ static void wm8350_client_dev_register(struct wm8350 *wm8350,
int ret; int ret;
*pdev = platform_device_alloc(name, -1); *pdev = platform_device_alloc(name, -1);
if (pdev == NULL) { if (*pdev == NULL) {
dev_err(wm8350->dev, "Failed to allocate %s\n", name); dev_err(wm8350->dev, "Failed to allocate %s\n", name);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment