summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/bytcr_wm5102.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2022-02-10 23:42:17 +0300
committerMark Brown <broonie@kernel.org>2022-02-11 13:31:25 +0300
commit695c105933cfa04ccf84088342193ae43e37e0f5 (patch)
tree35381d2097b36b3cf85f0e1c8da42d230ede627e /sound/soc/intel/boards/bytcr_wm5102.c
parentc55b3e46cb99a8342cad9c1a35485bfe15187832 (diff)
downloadlinux-695c105933cfa04ccf84088342193ae43e37e0f5.tar.xz
ASoC: Intel: bytcr_wm5102: use GFP_KERNEL
Platform_driver probe functions aren't called with locks held and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead. Problem found with Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20220210204223.104181-4-Julia.Lawall@inria.fr Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcr_wm5102.c')
-rw-r--r--sound/soc/intel/boards/bytcr_wm5102.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bytcr_wm5102.c b/sound/soc/intel/boards/bytcr_wm5102.c
index 504ef4cab111..8d8e96e3cd2d 100644
--- a/sound/soc/intel/boards/bytcr_wm5102.c
+++ b/sound/soc/intel/boards/bytcr_wm5102.c
@@ -389,7 +389,7 @@ static int snd_byt_wm5102_mc_probe(struct platform_device *pdev)
bool sof_parent;
int ret;
- priv = devm_kzalloc(dev, sizeof(*priv), GFP_ATOMIC);
+ priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;