Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2199828iof; Tue, 7 Jun 2022 23:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywhs4HicxAcb5ti9LZtbI98Sjs4G5M+zRtFkIBy02eT3PwgVQI7fYtnvPJl41sUHxe8Ux9 X-Received: by 2002:a17:902:7593:b0:15e:fe5d:58e1 with SMTP id j19-20020a170902759300b0015efe5d58e1mr32384691pll.102.1654668064164; Tue, 07 Jun 2022 23:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668064; cv=none; d=google.com; s=arc-20160816; b=w6s6+3iAOxVsV5t41vIRV63dzqqBa7KP+KRHFUo7fafXREyipxlJSZUETK+ZIvC9FN hJHc7FzHtoZSYq7ikBnje9F8ahud+wFppw2lx++n/7GgQhc6umcLemKVlzFlUOnLxtpT iEy9f4Qypn/fW0kJPBB3bNvi5gUhAQ1koaXbg7wnhaINU9K0Qv3DyxjswXkrB/Op5ULi sqfXT+2Ny+CaLBbOm06G1Gbp2p8aawc1Cx7s8JFEUJFYHwbJUWvIsit7ZlmDsf2iTRjV EzasRB8Wr5UGFnuegT5QuMWVXUQlH4eMe44C/U8Kr9VA8R5M3o2YXQhhLVBGWJbNXMP7 s0YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fa5Aunqd0kXSZgyKDX+OCpTj/xQzinq7ZaXCdAcLcgI=; b=LMzg7bq2df+nhyr/YxlIJ2pZX1N0B1k8S6wXISYfU3kGo5W3G+bPni9jAnFFXvhJ94 jHAlDE7JOTzWRbW9Fd7cNEzel/O3Ixj8rjN/V8tf9fB9yuZBjfL/PihiXOlz73Y4BNsq lh5Xd/lb4S7jfaL4kgIvhhJYQs/qxD4bTo7ofZTLOpwC8o1OAF+KkS/iCEcp+yLHB9Yx kAAQ5aIiRkKLAV/wVVmbEdbdEaZxtzBcdV+Hjd6MavdUFfvXyQ4bw8Ksv6GShJySgqAv RNLVK22447Ib0z4fa0RdxtjScQS7IDsGrkZv2VAoLlrougFG/OgYri/4wB9LWNbdK4wD 5yiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iyQ2D6Pv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w22-20020a631616000000b003faf501eeecsi26787375pgl.660.2022.06.07.23.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:01:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iyQ2D6Pv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 761A24B929D; Tue, 7 Jun 2022 22:25:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229446AbiFHAz4 (ORCPT + 99 others); Tue, 7 Jun 2022 20:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384286AbiFGVyZ (ORCPT ); Tue, 7 Jun 2022 17:54:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C893824A1F9; Tue, 7 Jun 2022 12:13:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7E951617DA; Tue, 7 Jun 2022 19:13:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90978C385A2; Tue, 7 Jun 2022 19:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629199; bh=f0qjRxAqq3MPhGvkFvgfXxFOd3nQx8XC80gGPqBDDeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iyQ2D6Pv+gv2IzmR9jNPtk9tt1Jp4f8JwZR5WWO/1N6iC/jMTPMlxScAF7LYt9w0N WqCASFje6zdOK5zHnoslKaIVIOUZSX9sA3lgwZB4zKwJjkBJixQW6DeCKRoKFwLObi D8QNxE0JkglMwv17z4gmLsvuP/9eR3if6hF/RUXc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lad Prabhakar , Mark Brown , Sasha Levin Subject: [PATCH 5.18 588/879] ASoC: sh: rz-ssi: Propagate error codes returned from platform_get_irq_byname() Date: Tue, 7 Jun 2022 19:01:46 +0200 Message-Id: <20220607165019.920778468@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lad Prabhakar [ Upstream commit 91686a3984f34df0ab844cdbaa7e4d9621129f5d ] Propagate error codes returned from platform_get_irq_byname() instead of returning -ENODEV. platform_get_irq_byname() may return -EPROBE_DEFER, to handle such cases propagate the error codes. While at it drop the dev_err_probe() messages as platform_get_irq_byname() already does this for us in case of error. Signed-off-by: Lad Prabhakar Link: https://lore.kernel.org/r/20220426074922.13319-3-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sh/rz-ssi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index e8edaed05d4c..8bbcebbe7e73 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -979,8 +979,7 @@ static int rz_ssi_probe(struct platform_device *pdev) /* Error Interrupt */ ssi->irq_int = platform_get_irq_byname(pdev, "int_req"); if (ssi->irq_int < 0) - return dev_err_probe(&pdev->dev, -ENODEV, - "Unable to get SSI int_req IRQ\n"); + return ssi->irq_int; ret = devm_request_irq(&pdev->dev, ssi->irq_int, &rz_ssi_interrupt, 0, dev_name(&pdev->dev), ssi); @@ -992,8 +991,7 @@ static int rz_ssi_probe(struct platform_device *pdev) /* Tx and Rx interrupts (pio only) */ ssi->irq_tx = platform_get_irq_byname(pdev, "dma_tx"); if (ssi->irq_tx < 0) - return dev_err_probe(&pdev->dev, -ENODEV, - "Unable to get SSI dma_tx IRQ\n"); + return ssi->irq_tx; ret = devm_request_irq(&pdev->dev, ssi->irq_tx, &rz_ssi_interrupt, 0, @@ -1004,8 +1002,7 @@ static int rz_ssi_probe(struct platform_device *pdev) ssi->irq_rx = platform_get_irq_byname(pdev, "dma_rx"); if (ssi->irq_rx < 0) - return dev_err_probe(&pdev->dev, -ENODEV, - "Unable to get SSI dma_rx IRQ\n"); + return ssi->irq_rx; ret = devm_request_irq(&pdev->dev, ssi->irq_rx, &rz_ssi_interrupt, 0, -- 2.35.1