From: Dan Carpenter Date: Sat, 21 Nov 2009 08:13:48 +0000 (+0200) Subject: mfd: Fix incorrect error check for wm8350-core X-Git-Tag: v3.12-rc1~12056^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb9b2245009d18ae011c44006335088f743b72e2;p=kernel%2Fkernel-generic.git mfd: Fix incorrect error check for wm8350-core It was *pdev which was allocated not pdev. Signed-off-by: Dan Carpenter Acked-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c index 242795f..8485a70 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, int ret; *pdev = platform_device_alloc(name, -1); - if (pdev == NULL) { + if (*pdev == NULL) { dev_err(wm8350->dev, "Failed to allocate %s\n", name); return; }