diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2019-08-16 18:01:53 +0800 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:53:33 +0800 |
commit | f337340c236307558df0f79d28bc4e4177d6a8cc (patch) | |
tree | c266fd286704c3060e9757fed499db3f50be9619 /sound/soc/qcom | |
parent | ab150b3f7c5606bce09b295e2a854559718f58ae (diff) |
Revert "ASoC: Remove dev_err() usage after platform_get_irq()"
This reverts commit cf9441adb1a35506d7606866c382b9d8614169b5.
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r-- | sound/soc/qcom/lpass-platform.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index 4c745baa39f7..cf7a299f4547 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -564,8 +564,11 @@ int asoc_qcom_lpass_platform_register(struct platform_device *pdev) int ret; drvdata->lpaif_irq = platform_get_irq_byname(pdev, "lpass-irq-lpaif"); - if (drvdata->lpaif_irq < 0) + if (drvdata->lpaif_irq < 0) { + dev_err(&pdev->dev, "error getting irq handle: %d\n", + drvdata->lpaif_irq); return -ENODEV; + } /* ensure audio hardware is disabled */ ret = regmap_write(drvdata->lpaif_map, |