diff options
author | Dan Carpenter <error27@gmail.com> | 2009-11-21 10:13:48 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-12-13 19:21:47 +0100 |
commit | cb9b2245009d18ae011c44006335088f743b72e2 (patch) | |
tree | 6778be2cd06e3ee3c5cc180853d54442ca0034c9 /drivers/mfd | |
parent | 89f5f9f79e5b3caae3e39832774f0f909c18ec5e (diff) | |
download | blackbird-obmc-linux-cb9b2245009d18ae011c44006335088f743b72e2.tar.gz blackbird-obmc-linux-cb9b2245009d18ae011c44006335088f743b72e2.zip |
mfd: Fix incorrect error check for wm8350-core
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>
Diffstat (limited to 'drivers/mfd')
-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, 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; } |