Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2201067imi; Sun, 24 Jul 2022 10:51:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+XmDiRInNdYFG/AS96I+CrevTsTW/RofcnwkWa+TctYPLB90eBTPo0F5/mpevLSKuM9T4 X-Received: by 2002:a17:90a:c4f:b0:1df:a178:897f with SMTP id u15-20020a17090a0c4f00b001dfa178897fmr10420422pje.19.1658685079367; Sun, 24 Jul 2022 10:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658685079; cv=none; d=google.com; s=arc-20160816; b=imeUGdlxhrh373LvbLD9awAdE4WPp3Ikvzds/ONB/GIqkEwfC9Gn6sIIjTb9cAu+x4 9zz++Y9yqU6RSHM8MAWT0OwPFLnbrY7BmaYCAVlSd+fr+1NIXZXuuTcZoNq+QK3LjCdO d3dmM7kL+67TYpd83GeQxDNtI5hdSquOOpVdeVtXl3h+5wyzeH3HIYdqJE+VLWAHu6uj Av7wsB5IMSFA05MaOHTrHcvOYdRPr/I6QBlCMMapIpOmDSGtRfgmwx/9c1ZRBhQ9NomF C6o7XKt7Y3CimeV7lrz7fCP6l6W6fTJ9mV8OSdCoHoM3fizcfvp778Oq9HfN9zeU9x2q L0iQ== 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=lNrk36djQDZAzo4yLFi2eyZu2DJd0I2Hge+OLKGAsuc=; b=d+VNZQb/RwBv3epRTXAK01IV+ocuEq3rqmDepv1ygR1S9xRm2GjLPRbPDz+UiJVhvE s3cukxqUDZRu4+gjcR2X/B5kj2kOrnevgRechjIjyYzgWdVsz1+Irg1JbCTuMLWDRlmL Lu4yKgJlIxJhbwKjaF9gTRz0PLpM6lO6mvS7elZxWopTJ+juZYVIZC2bjDMh1Z+5Wo3c t2zeeD7w874SK2xbgoaqzVX1s1/EX6RTOfA25fVgMRg3mZCOZHYPDmVgdKM3VvY0BhfO wNM7pkCnml7RUtgeha+zJE3iWZyaNBedIqlOzisgQXO8xJQ3+SXFqO51T9iDbAQ0Zex/ CU+A== 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 t27-20020a63461b000000b003fc61e0fb47si11817064pga.799.2022.07.24.10.51.04; Sun, 24 Jul 2022 10:51:19 -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 S229793AbiGXRsr (ORCPT + 99 others); Sun, 24 Jul 2022 13:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiGXRsp (ORCPT ); Sun, 24 Jul 2022 13:48:45 -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 212001117C; Sun, 24 Jul 2022 10:48:44 -0700 (PDT) Received: from dslb-178-004-201-227.178.004.pools.vodafone-ip.de ([178.4.201.227] 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 1oFfiV-0005LM-0m; Sun, 24 Jul 2022 19:48: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 v3 2/2] clk: imx25: make __mx25_clocks_init return void Date: Sun, 24 Jul 2022 19:47:37 +0200 Message-Id: <20220724174737.212028-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220724174737.212028-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20220724174737.212028-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 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 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