ASoC: SOF: mediatek: Fix error code in probe
This should return PTR_ERR() instead of IS_ERR(). Fixes: e0100bfd383c ("ASoC: SOF: mediatek: Add mt8186 ipc support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/YqmWIK8sTj578OJP@kili Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4e07479eab
commit
427eb3e1ed
@ -392,7 +392,7 @@ static int mt8186_dsp_probe(struct snd_sof_dev *sdev)
|
||||
PLATFORM_DEVID_NONE,
|
||||
pdev, sizeof(*pdev));
|
||||
if (IS_ERR(priv->ipc_dev)) {
|
||||
ret = IS_ERR(priv->ipc_dev);
|
||||
ret = PTR_ERR(priv->ipc_dev);
|
||||
dev_err(sdev->dev, "failed to create mtk-adsp-ipc device\n");
|
||||
goto err_adsp_off;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user