From patchwork Thu Jan 19 07:34:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13107537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E516C00A5A for ; Thu, 19 Jan 2023 07:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=B1m310qIC3BKWo6VIGWj4JDfAWOZ0Z4usakJan8Jx6I=; b=4/pb6qAPAatPeE uIMll5l3wdZkAaT5uphbv+LyZT7CCheY3uj+fe8OAv709zTYc1fK8YpiutHCYO3fL89X8n1LEs8EO MjnIo5mhvt+v3nkEaOhIxLHCRnXREPS6imUYSVJipKnO/kX0RPJIZLt/6O/hBOplDWw4wMuBpmwJK sQUaIfEex4rIOLZZDNJPQzh3M5wnbh6Sg91a6U3ctWKJtbbILeMsv2JjhHq3shxQIpy+0mg61UWYA ojDD9Sqt0Q2dWlHCoNET33aVKHHFZszkJvEPUA1AmzmNBbsPOFz7EBu4EkN7FfwIc5WHYmAUnE1AD 57z6GSGrvoi39csWrmzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIPRN-003rqL-PT; Thu, 19 Jan 2023 07:34:29 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIPRJ-003rnr-V0 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2023 07:34:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1674113666; x=1705649666; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=s94IzfBcezUwrrXvkeXbHYzla1KnXTUynqvpSNJ59RI=; b=b7ve3m27UKcr5DpA9PqfwGaDMhWIi2TDEvb0Jm8aiXWvfn4LzFgCUFqi rHhpRATEl8n5EiRX9/bMCdptSmRA8g/uH2H0uDWTlwuJ/e6A1SSk5ze8G 7jX3fKagZ+HJw+Zd+1vYvSFsG0w7CvhRohhpiU08PIMcushwww2w2wvOO XTVUYIacAb1JBsWdE0SAN7XhZInWKDy0TYHJMvSbeKxpsC9Z3nWMRmQ3r qy6OYs5YGUflFta9J8FCho7uBIXPJ5JUkp7W/nB6DQ8lv3gVualNFH+1m A6/sWjXmfTk8Yh4IwDg59hLWhSE+XWUTKh909YKokqRFJc4Zivz88fhzT Q==; X-IronPort-AV: E=Sophos;i="5.97,228,1669071600"; d="scan'208";a="28520959" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 19 Jan 2023 08:34:20 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 19 Jan 2023 08:34:20 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 19 Jan 2023 08:34:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1674113660; x=1705649660; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=s94IzfBcezUwrrXvkeXbHYzla1KnXTUynqvpSNJ59RI=; b=Uk88ARAj4LAJjXbqgehHSp08D5NjYOd82SLwdcb7QLhxQf+8l5fULH2w jUlknjpLUxLXfVXgNSyy5NHsb1PYKmH0ePb2/4Gj6EJDVY4rmhWNRvfeo cdNB8BRb0u90yMwcqn9k9UYiTU6IscLDoZiyu93pvDgQWHNc58qN6Cufa /+NMTLS3ZK7xQWxovMebD+2yASNoYNcAYqUHmnsRjnhwRc5iR3yjvslki SF+xxj8HNonlA+sI10ZjcV/rlWx7iaI2UksR2rVC7uX56MqlTdAvTWE5U Aea3vrDVeW1BQW2fLAGgR1dADhYp/qfNMLgIOAW0Gk0vEdbymOdD8PG3g A==; X-IronPort-AV: E=Sophos;i="5.97,228,1669071600"; d="scan'208";a="28520958" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Jan 2023 08:34:19 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 7508A280056; Thu, 19 Jan 2023 08:34:19 +0100 (CET) From: Alexander Stein To: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ASoC: imx-hdmi: Use dev_err_probe Date: Thu, 19 Jan 2023 08:34:16 +0100 Message-Id: <20230119073416.3064918-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230118_233426_395795_E1055257 X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This silences -517 errors and helps figuring out why the device probe is deferred. Signed-off-by: Alexander Stein --- sound/soc/fsl/imx-hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index a780cf5a65ffa..b6cc7e6c2a320 100644 --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound/soc/fsl/imx-hdmi.c @@ -202,7 +202,7 @@ static int imx_hdmi_probe(struct platform_device *pdev) snd_soc_card_set_drvdata(&data->card, data); ret = devm_snd_soc_register_card(&pdev->dev, &data->card); if (ret) { - dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); + dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); goto fail; }