ASoC: Intel: bytcht_es8316: Replace GFP_ATOMIC with GFP_KERNEL
authorVinod Koul <vinod.koul@intel.com>
Fri, 20 Apr 2018 10:44:27 +0000 (16:14 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 20 Apr 2018 16:29:00 +0000 (17:29 +0100)
In snd_byt_cht_es8316_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>
sound/soc/intel/boards/bytcht_es8316.c

index 305e7f4fe55ab86fbe1e711f54d538ee863728e1..adc26dfc7d654d3064d0999366ac99ea71c5f742 100644 (file)
@@ -243,7 +243,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)
        int i;
        int ret = 0;
 
-       priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_ATOMIC);
+       priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
        if (!priv)
                return -ENOMEM;