diff options
-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 242795feb90d..8485a7018060 100644 --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c | |||
@@ -537,7 +537,7 @@ static void wm8350_client_dev_register(struct wm8350 *wm8350, | |||
537 | int ret; | 537 | int ret; |
538 | 538 | ||
539 | *pdev = platform_device_alloc(name, -1); | 539 | *pdev = platform_device_alloc(name, -1); |
540 | if (pdev == NULL) { | 540 | if (*pdev == NULL) { |
541 | dev_err(wm8350->dev, "Failed to allocate %s\n", name); | 541 | dev_err(wm8350->dev, "Failed to allocate %s\n", name); |
542 | return; | 542 | return; |
543 | } | 543 | } |