From: Tzung-Bi Shih Date: Tue, 18 Jun 2019 07:04:26 +0000 (+0800) Subject: ASoC: Intel: sof_rt5682: use GFP_KERNEL instead of GFP_ATOMIC X-Git-Tag: v5.3-rc1~168^2~7^2~2^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=281c443f1e8e25ebc46aaebf48c73e0545a0830e;p=thirdparty%2Flinux.git ASoC: Intel: sof_rt5682: use GFP_KERNEL instead of GFP_ATOMIC Change the memory allocation flag from GFP_ATOMIC to GFP_KERNEL because probe of platform device is unlikely a place where cannot sleep. Signed-off-by: Tzung-Bi Shih Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index 3343dbcd506fd..90d262ebeb10b 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -494,7 +494,7 @@ static int sof_audio_probe(struct platform_device *pdev) int dmic_num, hdmi_num; int ret, ssp_amp, ssp_codec; - ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_ATOMIC); + ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); if (!ctx) return -ENOMEM;