From: Julia Lawall Date: Thu, 10 Feb 2022 20:42:17 +0000 (+0100) Subject: ASoC: Intel: bytcr_wm5102: use GFP_KERNEL X-Git-Tag: v5.18-rc1~33^2~1^2~157 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=695c105933cfa04ccf84088342193ae43e37e0f5;p=tomoyo%2Ftomoyo-test1.git 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 Reviewed-by: Hans de Goede Acked-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20220210204223.104181-4-Julia.Lawall@inria.fr Signed-off-by: Mark Brown --- 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;