Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2927631rwb; Mon, 15 Aug 2022 14:13:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR78LZk+O7KrEEaz2dEQGCCMlFYzUJDgC1/XafBrxAKc98rkEQfY559+PMveqReYHNIJ3fFF X-Received: by 2002:a63:3c52:0:b0:421:5af6:9902 with SMTP id i18-20020a633c52000000b004215af69902mr14755067pgn.548.1660597985676; Mon, 15 Aug 2022 14:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597985; cv=none; d=google.com; s=arc-20160816; b=yOUZDjCG8wNyZRrnqL2Zv12y/j5qdqEnoRJXizh7knPLhs5uYrn90coyOmPg5+vsO8 kEnbZOkEGiqzalhG8VW9sNSs0PcNGS4hORCKxLaMMu5sFAYcbT65KYbuFjVWR25XyTG1 LZzffQElkVErS+KbAf7xzAQG5QqaWkyWGBr2m4Xs99NjuGZv+ICTBWwcDTFEFiQCjd2l Es3Ae6bgO2siO4qNuFEDycjNOTf+cwHcYuwhk3xpXYjsu7hPZ7d4PGEbMQZ6nzIrllxL vqE4amSJcOfqPPfjFrN7I+mMKJpua73WnBN+V8mVicw5mtxFsxTA+N2ezyYf5e5IJrvs Wo/A== 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; bh=mwmf+4i0SpvqhHnHz3AW0EIjbNb9iNAl6Ec1kjenL+s=; b=qef7p1tkv/p7kA5Ztfmem6w1iQeYPOIO150fpcet6Vt30TWIVBJTLQeokc7ojbPxhE KNs8MZFX38iv4iLWk07S0MwcNyt6/PUHVyC4QripOdzUxfzG+21ARov+hN5+2ueaOnH5 aRxkCBBmGBjsOS+OFa1m4kzTGkmmyMEcPouGZenkZcNafMn1Igf4tK9Z6/a6W6Gvgj2t PJca+sewAadZcYtZGH+SNq6OHKrox3R/BLNd7uDdKrSm9qTVFByZXIsN/iXD9USH5+cN 55Ag1rzrGMR7W91zi0Fu6PAsIAPGgkhIfEHYXq0A552RJzmN+SxNYshibYfddsRzjhuq lMwA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a056a000c8200b0052d31f22214si11843414pfv.110.2022.08.15.14.12.54; Mon, 15 Aug 2022 14:13:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346417AbiHOUsK (ORCPT + 99 others); Mon, 15 Aug 2022 16:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242510AbiHOUqt (ORCPT ); Mon, 15 Aug 2022 16:46:49 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB97B6D3E; Mon, 15 Aug 2022 12:08:45 -0700 (PDT) Received: from dslb-188-096-143-237.188.096.pools.vodafone-ip.de ([188.96.143.237] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1oNfRz-0003rX-BR; Mon, 15 Aug 2022 21:08:35 +0200 From: Martin Kaiser To: Abel Vesa , Stephen Boyd Cc: Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v4 2/2] clk: imx25: make __mx25_clocks_init return void Date: Mon, 15 Aug 2022 21:07:48 +0200 Message-Id: <20220815190748.102664-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220815190748.102664-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20220815190748.102664-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 The __mx25_clocks_init function always returns 0 and its only caller does not check the return value. Let's remove it. Signed-off-by: Martin Kaiser Reviewed-by: Fabio Estevam --- changes in v4: - rebase against today's linux-next - add Fabio's Reviewed-by tag changes in v3: - rebase against today's linux-next changes in v2: - send the patch to the clk maintainers drivers/clk/imx/clk-imx25.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index 263409fca1eb..72b30dd7f05f 100644 --- a/drivers/clk/imx/clk-imx25.c +++ b/drivers/clk/imx/clk-imx25.c @@ -74,7 +74,7 @@ enum mx25_clks { static struct clk *clk[clk_max]; -static int __init __mx25_clocks_init(void __iomem *ccm_base) +static void __init __mx25_clocks_init(void __iomem *ccm_base) { BUG_ON(!ccm_base); @@ -222,8 +222,6 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base) imx_register_uart_clocks(6); imx_print_silicon_rev("i.MX25", mx25_revision()); - - return 0; } static void __init mx25_clocks_init_dt(struct device_node *np) -- 2.30.2