clocksource/drivers/timer-imx-gpt: Remove non-DT function
authorFabio Estevam <festevam@denx.de>
Tue, 7 Mar 2023 12:43:13 +0000 (09:43 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 24 Apr 2023 14:56:13 +0000 (16:56 +0200)
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 <festevam@denx.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230307124313.708255-1-festevam@denx.de
drivers/clocksource/timer-imx-gpt.c
include/soc/imx/timer.h

index 7b2c70f..ca3e4cb 100644 (file)
@@ -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;
index b888d50..25f29c6 100644 (file)
@@ -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__ */