From patchwork Sun Jul 30 16:39:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 128251 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1596802vqg; Sun, 30 Jul 2023 10:29:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFUXu2sq3Ps62DUrcH8RZxJ9MlH5nr4i9/hcZ68cMUelit6HQeC6R7HhctH/J+Ifgxldvqf X-Received: by 2002:a17:906:186:b0:99b:ca24:ce33 with SMTP id 6-20020a170906018600b0099bca24ce33mr4947646ejb.31.1690738164179; Sun, 30 Jul 2023 10:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690738164; cv=none; d=google.com; s=arc-20160816; b=QCAfxi4IeGRn9fPcMkE6Ot9kF0hkhfidzQ2VDVK+1+lLqZtvkFN58EDdVcFKArde7b 4pgK6e4pMHd6u7ThAZqFzglIAdsMJAi6XjPS5OPW7LBi9hJXf6OxGnLo4BWFkBeZqBFM Gm0r8yutfeTlxPIUnPjwwLq9ubZ2epHGfcN3bPdRF8jkFKVX+3ry+bRb/ok0+9oMd9Wz MSM3fkOI58z77ojpqsQ+OsNnB5imk5ItwRxYlTCQ8C0oTNxtBJHaV7KbS8v2v8+RcmJx CRt8ioM3y8AsZa6bnfqOacM5kGUwxjgEOFuRkj/zqo954uEStljUSMltIaSBYzFCZsCF 1UPA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a1709067e1900b0099bd1cb6ffbsi5531526ejr.185.2023.07.30.10.29.00; Sun, 30 Jul 2023 10:29:24 -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 S229379AbjG3QmH (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772867461237768419 X-GMAIL-MSGID: 1772867461237768419 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)