Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp541702rwe; Fri, 14 Apr 2023 06:41:50 -0700 (PDT) X-Google-Smtp-Source: AKy350YKLjdXwWWxvApZ1hJoigVUsBSwOao9fw3n043LN1E+Mk2OvqxQDkryzHsMiat+GJvp+gVy X-Received: by 2002:a05:6a20:431b:b0:ee:7bf9:4c0d with SMTP id h27-20020a056a20431b00b000ee7bf94c0dmr1344814pzk.38.1681479710698; Fri, 14 Apr 2023 06:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681479710; cv=none; d=google.com; s=arc-20160816; b=cIielU9lxK5ldMyOM3XSfyw2rmT3BbZYOmsLVQTajCJ46cay09WJA5Yf7JZBOaIepE t031mVX4QWg50kq6DFn6gla6Kn3QHb1r48xwiOcitS1/dNFC2cVCLVmVHM/lsGOipGlp aAvWv1YesNU6cCX09ZGT/mCTLfYIR3nhOPh3gtXJsH/MeY1JjbyILdaF+cLhyTj7l+nx Jz67YrATOSFfRDT0GViDFIneqMZUnWgdNLrj24Qdun9N/so1vSyGNxnIB8uv+YPo8nxX 3vHhzygVZyCK/c87OrbzhkYAzL3vXFFB58dwjvROguEwKkCTCLIZwnPwK7ispKc6JozB +S7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZKLDYdqiwNsuno7oSYA6GXFb/H2zvvzG87rB48aUcGs=; b=0Vq/gxxzBgHIh9I7hRGGjv/54MGnNLPxMX675m74NhzbTqAVGictbN3jmSBs9xCEsm jJQLXB/eCF5nXvJilhpRj4MSImsh6qYajYPheEEigSSuqSeomRaTAMPRYX1SUfu8i9Cs ap2XF7f+QtsFHcU5SJdqYv+zWuy1Ogx7X2pDiQbdJLScPGXYQ3vMBCIrpeNo8OUqT8vW Le8bKSJow184IF9tlxwaEM0ocAwctQpsmogW4ek2VYErv83mWAtUUGIc2yQuTYfZ9tIe h3rjtA6yg/DSm/xSdUA09ETSUmvCz+rccYDVaAXzlWMVm4piukBwapLKYPq28eD1GGec z1zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=piHmnytf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a6553c2000000b00502f0410410si4971182pgr.472.2023.04.14.06.41.36; Fri, 14 Apr 2023 06:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=piHmnytf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjDNNiT (ORCPT + 99 others); Fri, 14 Apr 2023 09:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjDNNiM (ORCPT ); Fri, 14 Apr 2023 09:38:12 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A77393D1 for ; Fri, 14 Apr 2023 06:38:11 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33EDVEAR030487; Fri, 14 Apr 2023 08:37:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=ZKLDYdqiwNsuno7oSYA6GXFb/H2zvvzG87rB48aUcGs=; b=piHmnytf3PPnrmyapz9AMndVHcNqy0u746yyJNFhzqUDIspeAS3EFi8wiYRMpUarocFH lndzPYKlbDmGm7ShK+gCfqJ5/8ShlKao/TQ4kc2OQCTEOb96ytVyDQj6hRuT180CqZb0 bbH+YmqahErdYwArvNDZt3LBRr3G27j2OzIDu3nKREx7vEw96RCzukFXyCzRiK1DeQpX GA+Ans7hmP/8rVTxVrvNgksyVZPT3712F++iIsVonQMG8q/A3fcjEp1fOnDMUjKqj0mb wB29UcKQJpkuDusAiZ+s1tB1XxFJkjUPx5JHA+TAkvo94gzMGEwjyskv0TpoHohesyaD rQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3pu5p3sexy-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 08:37:59 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 14 Apr 2023 08:37:54 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 14 Apr 2023 08:37:54 -0500 Received: from edi-sw-dsktp-006.ad.cirrus.com (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.127]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3981C3561; Fri, 14 Apr 2023 13:37:54 +0000 (UTC) From: Richard Fitzgerald To: CC: , , , Simon Trimmer , Richard Fitzgerald Subject: [PATCH 5/5] ASoC: cs35l56: Don't return a value from cs35l56_remove() Date: Fri, 14 Apr 2023 14:37:53 +0100 Message-ID: <20230414133753.653139-6-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230414133753.653139-1-rf@opensource.cirrus.com> References: <20230414133753.653139-1-rf@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: Fr5d0BIXTGBfRA4nFc6Mgfb4nMqCehG2 X-Proofpoint-GUID: Fr5d0BIXTGBfRA4nFc6Mgfb4nMqCehG2 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Simon Trimmer cs35l56_remove() always returns 0. Two of the functions that call it are void and the other one should only return 0. So there's no point returning anything from cs35l56_remove(). Signed-off-by: Simon Trimmer Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/cs35l56-sdw.c | 4 +++- sound/soc/codecs/cs35l56.c | 4 +--- sound/soc/codecs/cs35l56.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/cs35l56-sdw.c b/sound/soc/codecs/cs35l56-sdw.c index e759347423cf..2cde78605ba9 100644 --- a/sound/soc/codecs/cs35l56-sdw.c +++ b/sound/soc/codecs/cs35l56-sdw.c @@ -527,7 +527,9 @@ static int cs35l56_sdw_remove(struct sdw_slave *peripheral) sdw_read_no_pm(peripheral, CS35L56_SDW_GEN_INT_STAT_1); sdw_write_no_pm(peripheral, CS35L56_SDW_GEN_INT_STAT_1, 0xFF); - return cs35l56_remove(cs35l56); + cs35l56_remove(cs35l56); + + return 0; } static const struct dev_pm_ops cs35l56_sdw_pm = { diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c index 5f66a8e20b2d..0f4a94b02ef8 100644 --- a/sound/soc/codecs/cs35l56.c +++ b/sound/soc/codecs/cs35l56.c @@ -1590,7 +1590,7 @@ int cs35l56_init(struct cs35l56_private *cs35l56) } EXPORT_SYMBOL_NS_GPL(cs35l56_init, SND_SOC_CS35L56_CORE); -int cs35l56_remove(struct cs35l56_private *cs35l56) +void cs35l56_remove(struct cs35l56_private *cs35l56) { cs35l56->init_done = false; @@ -1613,8 +1613,6 @@ int cs35l56_remove(struct cs35l56_private *cs35l56) gpiod_set_value_cansleep(cs35l56->reset_gpio, 0); regulator_bulk_disable(ARRAY_SIZE(cs35l56->supplies), cs35l56->supplies); - - return 0; } EXPORT_SYMBOL_NS_GPL(cs35l56_remove, SND_SOC_CS35L56_CORE); diff --git a/sound/soc/codecs/cs35l56.h b/sound/soc/codecs/cs35l56.h index 09762e70ce81..1f7894662fcb 100644 --- a/sound/soc/codecs/cs35l56.h +++ b/sound/soc/codecs/cs35l56.h @@ -76,6 +76,6 @@ irqreturn_t cs35l56_irq(int irq, void *data); int cs35l56_irq_request(struct cs35l56_private *cs35l56, int irq); int cs35l56_common_probe(struct cs35l56_private *cs35l56); int cs35l56_init(struct cs35l56_private *cs35l56); -int cs35l56_remove(struct cs35l56_private *cs35l56); +void cs35l56_remove(struct cs35l56_private *cs35l56); #endif /* ifndef CS35L56_H */ -- 2.30.2