mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
89f5f9f79e
commit
cb9b224500
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue