summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/bytcr_rt5651.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2018-04-20 16:14:28 +0530
committerMark Brown <broonie@kernel.org>2018-04-20 17:29:08 +0100
commitaa5398e1e90bd08078797570e2bcda1b15934979 (patch)
tree293416c86fe46bf675f9dab2fa041e8bd129724d /sound/soc/intel/boards/bytcr_rt5651.c
parentd441b8588c3661afdcf61855aad38addb6833581 (diff)
downloadblackbird-op-linux-aa5398e1e90bd08078797570e2bcda1b15934979.tar.gz
blackbird-op-linux-aa5398e1e90bd08078797570e2bcda1b15934979.zip
ASoC: Intel: bytcr_rt5651: Replace GFP_ATOMIC with GFP_KERNEL
In snd_byt_rt5651_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 <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/bytcr_rt5651.c')
-rw-r--r--sound/soc/intel/boards/bytcr_rt5651.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index 1b1997f1d60c..3c7d93520c52 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -734,7 +734,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)
int dai_index = 0;
int i;
- priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_ATOMIC);
+ priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;
OpenPOWER on IntegriCloud