aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshu Agrawal <[email protected]>2020-03-03 14:34:37 +0530
committerMark Brown <[email protected]>2020-03-03 14:16:23 +0000
commitd7729c40b376ab7c1ad4b0498a8bbf44bed3cbf4 (patch)
tree902fe3d7e9186957cf4dd3c77876ccfe45bb2371
parente7e2afeacaa6e6b3d428ca8dd0507f1098bafe5d (diff)
ASoC: amd: Fix compile warning of argument type
Fixes: >> sound/soc//amd/acp3x-rt5682-max9836.c:341:23: warning: format '%d' >> expects argument of type 'int', but argument 3 has type 'long int' >> [-Wformat=] dev_err(&pdev->dev, "DMIC gpio failed err=%d\n", Reported-by: kbuild test robot <[email protected]> Signed-off-by: Akshu Agrawal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/amd/acp3x-rt5682-max9836.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 511b8b1722aa..521c9ab4c29c 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -338,7 +338,7 @@ static int acp3x_probe(struct platform_device *pdev)
dmic_sel = devm_gpiod_get(&pdev->dev, "dmic", GPIOD_OUT_LOW);
if (IS_ERR(dmic_sel)) {
- dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
+ dev_err(&pdev->dev, "DMIC gpio failed err=%ld\n",
PTR_ERR(dmic_sel));
return PTR_ERR(dmic_sel);
}