MLK-13574-1: ASoC: imx-wm8960: remove the gpr dependency

There is no gpr setting in some board. so we can't return
a fatal error.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
This commit is contained in:
Shengjiu Wang
2016-11-28 13:37:36 +08:00
committed by Anson Huang
parent d29959f0f6
commit 5555277e69

View File

@ -481,8 +481,7 @@ static int imx_wm8960_probe(struct platform_device *pdev)
ret = of_parse_phandle_with_fixed_args(pdev->dev.of_node, "gpr", 3,
0, &args);
if (ret) {
dev_err(&pdev->dev, "failed to get gpr property\n");
goto fail;
dev_warn(&pdev->dev, "failed to get gpr property\n");
} else {
data->gpr = syscon_node_to_regmap(args.np);
if (IS_ERR(data->gpr)) {