Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: mediatek: Fix error code in probe
@ 2022-06-15  8:19 Dan Carpenter
  2022-06-15  9:52 ` Tinghan Shen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dan Carpenter @ 2022-06-15  8:19 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Tinghan Shen
  Cc: Liam Girdwood, Ranjani Sridharan, Kai Vehmanen, Daniel Baluta,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
	YC Hung, Péter Ujfalusi, Yang Yingliang, Allen-KH Cheng,
	sound-open-firmware, alsa-devel, linux-mediatek, kernel-janitors

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>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index 3333a0634e29..e006532caf2f 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -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;
 	}
-- 
2.35.1


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-15 17:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
2022-06-15  9:52 ` Tinghan Shen
2022-06-15 10:56 ` Pierre-Louis Bossart
2022-06-15 12:01 ` Péter Ujfalusi
2022-06-15 17:08 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox