summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-wm8958.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2017-06-20 16:33:55 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:50:13 +0800
commit06532305e2d60f4582279ced62a4e2c38a6c84c7 (patch)
tree4f3b90c8e63a9ea72c48c4e465531ea8757b574b /sound/soc/fsl/imx-wm8958.c
parent6e74493303c2b1656e137b36788cf96d8faa449b (diff)
MLK-15067: ASoC: fsl: imx-wm8958: Kill warning for non-gpr boards
Similar with 7c280619ed45b (" MLK-14663-2: ASoC: fsl: imx-wm8960: Kill warning for non-gpr boards") Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-wm8958.c')
-rw-r--r--sound/soc/fsl/imx-wm8958.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-wm8958.c b/sound/soc/fsl/imx-wm8958.c
index 707cf591fe2a..a8343d1cbc21 100644
--- a/sound/soc/fsl/imx-wm8958.c
+++ b/sound/soc/fsl/imx-wm8958.c
@@ -407,6 +407,10 @@ static int of_parse_gpr(struct platform_device *pdev,
int ret;
struct of_phandle_args args;
+ if (of_device_is_compatible(pdev->dev.of_node,
+ "fsl,imx7d-12x12-lpddr3-arm2-wm8958"))
+ return 0;
+
ret = of_parse_phandle_with_fixed_args(pdev->dev.of_node,
"gpr", 3, 0, &args);
if (ret) {
@@ -561,6 +565,7 @@ static int imx_wm8958_remove(struct platform_device *pdev)
static const struct of_device_id imx_wm8958_dt_ids[] = {
{ .compatible = "fsl,imx-audio-wm8958", },
+ { .compatible = "fsl,imx7d-12x12-lpddr3-arm2-wm8958", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, imx_wm8958_dt_ids);