Commit 00178c91 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: aoa: Fix of-node refcount unbalance

We forgot to unreference a node obtained via of_find_node_by_name()
after its usage.
Reviewed-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 31d2350d
...@@ -82,6 +82,7 @@ static struct device_node *get_gpio(char *name, ...@@ -82,6 +82,7 @@ static struct device_node *get_gpio(char *name,
if (altname && (strcmp(audio_gpio, altname) == 0)) if (altname && (strcmp(audio_gpio, altname) == 0))
break; break;
} }
of_node_put(gpio);
/* still not found, assume not there */ /* still not found, assume not there */
if (!np) if (!np)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment