From patchwork Tue Mar 7 12:43:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13163384 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 A4923C678D5 for ; Tue, 7 Mar 2023 12:44:36 +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: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:In-Reply-To:References: List-Owner; bh=aIYvBe9zQcpkm4GPSupo04PH7tMIYOQg8vVIOyOfhRg=; b=qDSyypAzXtKurU xFsO/qHMJok+zYST9Vfef6AUGZ72Wwo9+rXl+exTYBf4/GD1/7etxCssWNonpMt0kp3amHHZ0hi/y mJmyYVKmFl7GhmsCGXBBGoEhZFid0L3BhpN7e8rSCpmKHNClJ3Pu8UUslBfsiy7VNk4wV7szRjDhj 5111SXNwZpnOMbWC2sWJR/miwDYPb58I6rDrEqXSoVA1a7tpW8yw1JUI166hK6wHuUGO7NSb8eUBy 93/iMZBcZxsuUDV+sLc+sq4psXhvGHNBP7dfa/LVd3TqVrEsy+hyOpAvnke3wJnnMl1fRuYVBoL42 NXfdKqetIEbU4X5HwJgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZWfJ-0009El-J3; Tue, 07 Mar 2023 12:43:37 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZWfF-0009Ck-Km for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 12:43:35 +0000 Received: from fabio-Precision-3551.. (unknown [IPv6:2804:14c:485:4b69:479c:7535:eb9:ae35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 5CF4D85B1E; Tue, 7 Mar 2023 13:43:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1678193009; bh=QZATXNgCvjsN1UDwyI8/mzKko22hR/juVJM5m31ZcHg=; h=From:To:Cc:Subject:Date:From; b=m1lEIUAqCzb/yrdw5Pzj3nVbdT0QKbpDJo0RfrCaWG6s5VE+OjugoB6jJ8s+NAg3y KKtd0XwGpYE6G20GC1dlhsGIsp95TnEUqDuE4KS+7uyY1pjEg6YT5gMWUsKEFAR5QU X9FdnnTeWsRiUp9tTjSXEKGLYwKLREBEel56fa4nzWarsgqiWE3qXbwr4i2ov0zC2H Fv/RzcQ15DVL0LgK0pGaeoinqDKIRwnpi/CvIGMM173qUoZDnxjOCEiFMr26mAVGKB c5VDQ5kDUiaj1M2GXrErUFOnLEwHFxHVG5HumoNJAwmdNkxa+U6QugHUooR0D1kYpe eaafZ4HE4Z/RQ== From: Fabio Estevam To: daniel.lezcano@linaro.org Cc: shawnguo@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH] clocksource/drivers/timer-imx-gpt: Remove non-DT function Date: Tue, 7 Mar 2023 09:43:13 -0300 Message-Id: <20230307124313.708255-1-festevam@denx.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_044333_946782_CA131153 X-CRM114-Status: GOOD ( 11.22 ) 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 mxc_timer_init() was originally only used by non-DT i.MX platforms. i.MX has already been converted to be a DT-only platform. Remove the unused mxc_timer_init() function. Signed-off-by: Fabio Estevam Acked-by: Uwe Kleine-König --- drivers/clocksource/timer-imx-gpt.c | 19 ------------------- include/soc/imx/timer.h | 7 ------- 2 files changed, 26 deletions(-) diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c index 7b2c70f2f353..ca3e4cbc80c6 100644 --- a/drivers/clocksource/timer-imx-gpt.c +++ b/drivers/clocksource/timer-imx-gpt.c @@ -420,25 +420,6 @@ static int __init _mxc_timer_init(struct imx_timer *imxtm) return mxc_clockevent_init(imxtm); } -void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type) -{ - struct imx_timer *imxtm; - - imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL); - BUG_ON(!imxtm); - - imxtm->clk_per = clk_get_sys("imx-gpt.0", "per"); - imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg"); - - imxtm->base = ioremap(pbase, SZ_4K); - BUG_ON(!imxtm->base); - - imxtm->type = type; - imxtm->irq = irq; - - _mxc_timer_init(imxtm); -} - static int __init mxc_timer_init_dt(struct device_node *np, enum imx_gpt_type type) { struct imx_timer *imxtm; diff --git a/include/soc/imx/timer.h b/include/soc/imx/timer.h index b888d5076b4d..25f29c6bbd0b 100644 --- a/include/soc/imx/timer.h +++ b/include/soc/imx/timer.h @@ -13,11 +13,4 @@ enum imx_gpt_type { GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */ }; -/* - * This is a stop-gap solution for clock drivers like imx1/imx21 which call - * mxc_timer_init() to initialize timer for non-DT boot. It can be removed - * when these legacy non-DT support is converted or dropped. - */ -void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type); - #endif /* __SOC_IMX_TIMER_H__ */