From patchwork Wed Apr 24 15:28:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien DESSENNE X-Patchwork-Id: 10915079 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1370161F for ; Wed, 24 Apr 2019 15:29:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADD89286F1 for ; Wed, 24 Apr 2019 15:29:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0F4D28816; Wed, 24 Apr 2019 15:29:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 57626286F1 for ; Wed, 24 Apr 2019 15:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=LScGSU6ELBhVMomjrLAwbF0oRziyHhB7MSnjlSCOsWI=; b=Dt9wCfB8HSyl2e e2fleoKdxHnCmnLntDP8qgMQVpu3Ww8j7oEPoniCVUYLpr8bqcaaI8nnFokSUdNGf8ABbQXFnbeMj pTeEGCucPLI6EELlkcFbDJ7u7LhZAfb3oIaQyl2lkTSGMg+mQmAjNctIKwK3UZtfai/AjYMGXiV82 ysQbdhlqnS4mMOeyszXj3Px+Hy21oAqORZpPNZs0eaDOVZd/fG8Nu5gfSghGicAgCqBdNGtMbc+Nj ouuDjYOQbda15YYTMDPpkNoUomZGGZ8eMa/BbayAc5SNLx3syGFZwoKdwzAXYCYG1nyC/dpEGED/S ap/jGdqe0a1r5igBZphg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJpW-00007B-87; Wed, 24 Apr 2019 15:29:02 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJpT-0008Rz-0q for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 15:29:00 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3OFH4d9000566; Wed, 24 Apr 2019 17:28:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=RoPstAPuCUxNTqGt8P8YKt6rQGwssvcBvsdDnN1zA+s=; b=rmgLZLWtmixJL4NaVtUx8q908GL2JPDxaTri0FP+hf+hnBSIPSsvLNXZNmM6yY00nqJW D4G5IOsaTgrHjkSviBx+iLWvetNpYRoqVc5++HpdstoTcCBjex2gzmam6a8m4FdT6JqI fzRmULluDOKzJmpMDrVTjeyJKN8fnqcNo+Hnd8uyNqrnJlul43eZ7JGrnsgDO4Nawqtd 4LdDPP8KiYzfxBJFYh7+jzBZOeIfA5JH/KzBDXRAFYUW8yShTipbqbFJ4diW2xbw8vCf 1X7HxLq2L+bxPOv9zKqzjkskY6UudxbXBYw0XGIG10sNSeqCXh43zy9ghWkPHy6FXQ2K cA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rytad7e6n-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 17:28:50 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B196C34; Wed, 24 Apr 2019 15:28:49 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7689F292D; Wed, 24 Apr 2019 15:28:49 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 24 Apr 2019 17:28:49 +0200 Received: from localhost (10.201.23.25) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Apr 2019 17:28:48 +0200 From: Fabien Dessenne To: Olivier Moysan , Arnaud Pouliquen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Coquelin , "Alexandre Torgue" , , , , Subject: [PATCH] ASoC: stm32: i2s: return the get_irq error Date: Wed, 24 Apr 2019 17:28:44 +0200 Message-ID: <1556119724-9873-1-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-24_09:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190424_082859_376903_DA9901EB X-CRM114-Status: GOOD ( 14.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabien Dessenne Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP During probe, return the "get_irq" error value instead of -ENOENT. This allows the driver to be deferred probed if needed. Signed-off-by: Fabien Dessenne Acked-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 9526342..97d5e99 100644 --- a/sound/soc/stm/stm32_i2s.c +++ b/sound/soc/stm/stm32_i2s.c @@ -838,8 +838,9 @@ static int stm32_i2s_parse_dt(struct platform_device *pdev, /* Get irqs */ irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); - return -ENOENT; + if (irq != -EPROBE_DEFER) + dev_err(&pdev->dev, "no irq for node %s\n", pdev->name); + return irq; } ret = devm_request_irq(&pdev->dev, irq, stm32_i2s_isr, IRQF_ONESHOT,