Skip to content

Commit

Permalink
mfd: Fix incorrect error check for wm8350-core
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Samuel Ortiz committed Dec 13, 2009
1 parent 89f5f9f commit cb9b224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/wm8350-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cb9b224

Please sign in to comment.