projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c054b41
)
ASoC: Intel: sof_rt5682: use GFP_KERNEL instead of GFP_ATOMIC
author
Tzung-Bi Shih
<tzungbi@google.com>
Tue, 18 Jun 2019 07:04:26 +0000
(15:04 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 18 Jun 2019 18:16:06 +0000
(19:16 +0100)
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>
sound/soc/intel/boards/sof_rt5682.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/sof_rt5682.c
b/sound/soc/intel/boards/sof_rt5682.c
index
3343dbc
..
90d262e
100644
(file)
--- 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;