summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards
diff options
context:
space:
mode:
authorTzung-Bi Shih2019-06-18 09:04:26 +0200
committerMark Brown2019-06-18 20:16:06 +0200
commit281c443f1e8e25ebc46aaebf48c73e0545a0830e (patch)
treead073de925a8891324294f7b25b2fc9256792107 /sound/soc/intel/boards
parentASoC: qcom: common: Mark links as nonatomic (diff)
downloadkernel-qcow2-linux-281c443f1e8e25ebc46aaebf48c73e0545a0830e.tar.gz
kernel-qcow2-linux-281c443f1e8e25ebc46aaebf48c73e0545a0830e.tar.xz
kernel-qcow2-linux-281c443f1e8e25ebc46aaebf48c73e0545a0830e.zip
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 <tzungbi@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r--sound/soc/intel/boards/sof_rt5682.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 3343dbcd506f..90d262ebeb10 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;