Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5606900iog; Thu, 23 Jun 2022 01:20:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vORYRtybr+CZcTtHUYpk9foz7M92/Qme+Aswf8nbkWlWktTzUXp06l95dL73CmRQdKYWhP X-Received: by 2002:a05:6a00:ad2:b0:4f1:2734:a3d9 with SMTP id c18-20020a056a000ad200b004f12734a3d9mr39633987pfl.61.1655972439562; Thu, 23 Jun 2022 01:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655972439; cv=none; d=google.com; s=arc-20160816; b=kE8AJMYkg4vQW/PDoGXHGA48xWPuvQa/JB+6RV15PXacuRJ3ZUtq4s2KrdNcJB9Axd pxahtNS0ui69x6ary6u+oKM41i0vanAhR6RoLgkQE0v+NT14E4kIJvyBl/3lbL3rny++ ulMvRyx0vZQmGUoYXgrujH/dCaoiwL041SWxEqgqBF3yOVNO+yLzLdLNxYaZYHeZSTiU 3qujjiKJh0GkR3T9vmU3hi4A16SuD9a7Vj5q/Xq79vwGUeVdMs+M6F6H+TZs/PEUhImi pKVWJ+OzLs/bPla/erhgUIkVUJ9yATmlMG5RHC/zR8nQa/XzbTelLdJ6/tU+C/6q3A6K lQ0A== 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=Ido1lJk6I8KWsG4cKiMvUbTJK1vM+s0uRMDEzsRPN8c=; b=QkZ53Om6sSjo8d8Flb6ao4bza+CCqDnY/posaor0NdETlICrHiTkQxY8TDQSbwoBHN aaPunZDQKwdgpmzEf9y9kp3r9JKSTNJm1/6jAByFunIKvM2pWROssnKR3ocihy+LL0J5 Xk7oPbkgLIu2sk9p3ahgnVAO2/xdiFH4gwOEyEUSb7G41qFzOSkb1DD971sdXsxvrz6D Byu32xQqlLOazQPwhoKdnENDV/SySNFTMqgRxNQ/ToIqWCiqFJ8uStberKkeV5sePokG jOhbgtvUl/TaOo50qmWIf/1g9jCglZWW1llyqH0Y4rZ0l4qKMIA9AgtObll4/Jp8YczH 5H3g== 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 j185-20020a638bc2000000b0040ca428fd1bsi15253653pge.215.2022.06.23.01.20.24; Thu, 23 Jun 2022 01:20:39 -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 S230400AbiFWHvz (ORCPT + 99 others); Thu, 23 Jun 2022 03:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbiFWHvw (ORCPT ); Thu, 23 Jun 2022 03:51:52 -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 24C972983A; Thu, 23 Jun 2022 00:51:51 -0700 (PDT) Received: from dslb-188-096-142-050.188.096.pools.vodafone-ip.de ([188.96.142.50] 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 1o4Hcx-0006sS-BK; Thu, 23 Jun 2022 09:51:47 +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 v2 2/2] clk: imx25: make __mx25_clocks_init return void Date: Thu, 23 Jun 2022 09:51:04 +0200 Message-Id: <20220623075104.166529-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220623075104.166529-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20220623075104.166529-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 --- 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