]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: SOF: mediatek: Fix error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 Jun 2022 08:19:44 +0000 (11:19 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:21:48 +0000 (16:21 +0100)
This should return PTR_ERR() instead of IS_ERR().

Fixes: 3ce81370f0e9 ("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>
sound/soc/sof/mediatek/mt8186/mt8186.c

index 3333a0634e29dc34d2c002ea6630015f549149d2..e006532caf2f0528da6a472aa9ddedf0e030d22b 100644 (file)
@@ -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;
        }