Skip to content

Commit f68a40e

Browse files
Fabio Estevamdlezcano
authored andcommitted
clocksource/drivers/timer-imx-gpt: Remove non-DT function
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
1 parent 49d576e commit f68a40e

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

drivers/clocksource/timer-imx-gpt.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -420,25 +420,6 @@ static int __init _mxc_timer_init(struct imx_timer *imxtm)
420420
return mxc_clockevent_init(imxtm);
421421
}
422422

423-
void __init mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type)
424-
{
425-
struct imx_timer *imxtm;
426-
427-
imxtm = kzalloc(sizeof(*imxtm), GFP_KERNEL);
428-
BUG_ON(!imxtm);
429-
430-
imxtm->clk_per = clk_get_sys("imx-gpt.0", "per");
431-
imxtm->clk_ipg = clk_get_sys("imx-gpt.0", "ipg");
432-
433-
imxtm->base = ioremap(pbase, SZ_4K);
434-
BUG_ON(!imxtm->base);
435-
436-
imxtm->type = type;
437-
imxtm->irq = irq;
438-
439-
_mxc_timer_init(imxtm);
440-
}
441-
442423
static int __init mxc_timer_init_dt(struct device_node *np, enum imx_gpt_type type)
443424
{
444425
struct imx_timer *imxtm;

include/soc/imx/timer.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,4 @@ enum imx_gpt_type {
1313
GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */
1414
};
1515

16-
/*
17-
* This is a stop-gap solution for clock drivers like imx1/imx21 which call
18-
* mxc_timer_init() to initialize timer for non-DT boot. It can be removed
19-
* when these legacy non-DT support is converted or dropped.
20-
*/
21-
void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
22-
2316
#endif /* __SOC_IMX_TIMER_H__ */

0 commit comments

Comments
 (0)