Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3568951rwb; Sun, 30 Jul 2023 10:28:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+rOjuhN1pWkNUHeNT+4E3kkFBbyuB14GFfiPCPvswRNLov7nOfXYSVwHKMIxlFPr2YkZ+ X-Received: by 2002:adf:fe49:0:b0:317:58eb:1e33 with SMTP id m9-20020adffe49000000b0031758eb1e33mr4636317wrs.8.1690738091366; Sun, 30 Jul 2023 10:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690738091; cv=none; d=google.com; s=arc-20160816; b=Zx0udCOzIwnWN6ispalIg4TGidJdmrOrVgYUhIDmYcMXxbRGyXqE8nivMvAqyWgdnG /0TTQBQHxVmxj3oIj+ZSnpuYTFpXlebuq/irzcZxQH07Ln5YauAUSktxtSt3ZMH//2l7 Pwx0tzI31CahiQoIR3DH0WRyQW5CqA0kVokoFSadJGznSG53OpQ+V+vdpJ7Arqg2ghul rO169SnN0wX0lJ4IU/P5ivRKv9RPbrwzS/m+1ofVpZMFxx/M1gKLB3g1ljLmwHCtnmDV 0cubr9RbIqoXcsUbpLwM21DEVekDkzgej/j9sm6R9cdObGYMZlXFNqkRQwQDVAv8wwkJ OZKA== 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=Yld+9Wljqk4DRBlzXX+hhNEX+DAEyrte4EgBnWomsFI=; fh=WwzKZuyFi/F+VmNIz+NPOftR+wclUc1MyRRZ7hHl7Aw=; b=KuBhQvh0Y9slIc7jV+CZJ7Yi8I6ASeKTZ+HoJs9v+L/LK9lbb3nI52BSANX9u0eokW HcaUkisr4tRNSYu+P3XsdVMqRPA/xhc3t5J5RGWM5HzvGXCAGhcW7N5JY5pMVahRQc/R zXqmhAgukVG8VqfpX9pHwJoGvERki5q5KnccoPkSTCufMW/9FwtqjkzamU9FBdpwzcI/ Jr6hUTIKbiBDm29V7qtMOYSw6nhUDRyFa05+c1VuFRNEnkcdjNYrmcY87bXW+suDHGE9 PIWxJNRpWcFYYu7HRJVjvMBKVoIQ08dTCjl7zPWarocvmofJZGP83W0NYxh+IB7QBTkJ 0/nw== 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 d21-20020aa7d5d5000000b0051e2340f298si5394850eds.468.2023.07.30.10.27.47; Sun, 30 Jul 2023 10:28:11 -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 S229573AbjG3QmH (ORCPT + 99 others); Sun, 30 Jul 2023 12:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjG3QmF (ORCPT ); Sun, 30 Jul 2023 12:42:05 -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 A155A171B; Sun, 30 Jul 2023 09:42:04 -0700 (PDT) Received: from ipservice-092-217-095-237.092.217.pools.vodafone-ip.de ([92.217.95.237] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1qQ9UV-0003mQ-IM; Sun, 30 Jul 2023 18:41:59 +0200 From: Martin Kaiser To: Abel Vesa , Stephen Boyd Cc: Shawn Guo , Fabio Estevam , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v6 2/2] clk: imx25: make __mx25_clocks_init return void Date: Sun, 30 Jul 2023 18:39:28 +0200 Message-Id: <20230730163928.70637-3-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230730163928.70637-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20230730163928.70637-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_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 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 Acked-by: Arnd Bergmann --- 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 bee3da2e21e1..c566be848c2d 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(); imx_print_silicon_rev("i.MX25", mx25_revision()); - - return 0; } static void __init mx25_clocks_init_dt(struct device_node *np) -- 2.39.2