From patchwork Wed Aug 2 18:40:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 13338743 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34654C04A94 for ; Wed, 2 Aug 2023 18:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y19laEC4pD1K7XLNXKKyGqINqUWwmorQPqzCF7trn6s=; b=1XjO5ijYU+OdgK 8HYS30u3P4HGE8CpkkmDGeO15rBRlo0BZ0lQ9TABl6oU2G6aL1KOJz24PF9il/AATEItTNE7tXYiD v5F8+sbp1+WniaUeqyND78qabqJyhufHv+8VIQtJX+j+oCAHMMuqI2TSsxvxz/2wy+YDIeASr9Uny 7FrOV6vkJ107iANzZezgHGYUdrgz6jEspDnG3xN8Z/zDvtEUigakhGwUgjSKYjOgdx5q9ZZNjw3vM iO3/C1Lk8wXTGdUSpNPxqmxtaYIJUraBqZNUoUDlByawbbAoCuQq1CfnmjE1q62i/D530zfAbqKjY fbPUQbpxChAuCmYD7PwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRGos-005f8H-0N; Wed, 02 Aug 2023 18:43:38 +0000 Received: from viti.kaiser.cx ([2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRGoo-005f6m-05 for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2023 18:43:35 +0000 Received: from dslb-094-219-037-101.094.219.pools.vodafone-ip.de ([94.219.37.101] 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 1qRGoj-0003Eh-48; Wed, 02 Aug 2023 20:43:29 +0200 From: Martin Kaiser To: Arnd Bergmann , Abel Vesa , Stephen Boyd Cc: Shawn Guo , linux-imx@nxp.com, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v7 2/2] clk: imx25: make __mx25_clocks_init return void Date: Wed, 2 Aug 2023 20:40:46 +0200 Message-Id: <20230802184046.153394-3-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802184046.153394-1-martin@kaiser.cx> References: <20230802184046.153394-1-martin@kaiser.cx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230802_114334_209887_CC33E977 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Acked-by: Stephen Boyd --- 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)