From: Vinod Koul Date: Fri, 20 Apr 2018 10:44:29 +0000 (+0530) Subject: ASoC: Intel: cht_bsw_nau8824: Replace GFP_ATOMIC with GFP_KERNEL X-Git-Tag: v4.19~773^2~15^2~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b113855a5a28c1574ad744dd9a34748442d6e006;p=platform%2Fkernel%2Flinux-rpi.git ASoC: Intel: cht_bsw_nau8824: Replace GFP_ATOMIC with GFP_KERNEL In snd_cht_mc_probe which is not atomic context, we use GFP_ATOMIC flag with memory allocation, fix that by using GFP_KERNEL. Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/cht_bsw_nau8824.c b/sound/soc/intel/boards/cht_bsw_nau8824.c index 680f2b3..072e94b 100644 --- a/sound/soc/intel/boards/cht_bsw_nau8824.c +++ b/sound/soc/intel/boards/cht_bsw_nau8824.c @@ -248,7 +248,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev) struct cht_mc_private *drv; int ret_val; - drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_ATOMIC); + drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); if (!drv) return -ENOMEM; snd_soc_card_set_drvdata(&snd_soc_card_cht, drv);