diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-20 11:03:44 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-22 23:26:46 +0100 |
commit | 57cf9d4512c86a4a1b58857ca22b18bffbfd6812 (patch) | |
tree | 32c9def6f396c0c5119f70e3735067264c421e73 /sound/soc/soc-core.c | |
parent | 81a081fff7f3c144a0da9ee726906e533f66dd89 (diff) | |
download | op-kernel-dev-57cf9d4512c86a4a1b58857ca22b18bffbfd6812.zip op-kernel-dev-57cf9d4512c86a4a1b58857ca22b18bffbfd6812.tar.gz |
ASoC: soc-core: use GFP_KERNEL flag for kmalloc in snd_soc_cnew
GFP_ATOMIC is not needed here, use GFP_KERNEL instead.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 83ad8ca..b085d8e 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1913,7 +1913,7 @@ struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template, if (prefix) { name_len = strlen(long_name) + strlen(prefix) + 2; - name = kmalloc(name_len, GFP_ATOMIC); + name = kmalloc(name_len, GFP_KERNEL); if (!name) return NULL; |