mfd: Fix incorrect error check for wm8350-core
authorDan Carpenter <error27@gmail.com>
Sat, 21 Nov 2009 08:13:48 +0000 (10:13 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:47 +0000 (19:21 +0100)
It was *pdev which was allocated not pdev.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-core.c

index 242795feb90d06d96efbb0a4a87d91c28b6278f4..8485a70180605d0eea68cb1b1d98872541846c5c 100644 (file)
@@ -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;
        }