clocksource/drivers/timer-imx-gpt: Remove non-DT function
Subsystems (2)
PATCH 1/1 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.
--- drivers/clocksource/timer-imx-gpt.c | 19 ------------------- include/soc/imx/timer.h | 7 ------- 2 files changed, 26 deletions(-)
drivers/clocksource/timer-imx-gpt.c +0 -19
@@ -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;
include/soc/imx/timer.h +0 -7
@@ -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__ */
Signature · 1 line
2.34.1
Quoted 7 lines · Fabio Estevam
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 <[email protected]>
Actually I created the same patch and have another patch that depends on this one. See
https://lore.kernel.org/linux-arm-kernel/[email protected]/#t
.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Daniel Lezcano
AppliedQuoted 8 lines · Fabio Estevam
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 <[email protected]>---
Applied, thanks
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: f68a40ee4732731f149961abab27a45b6c11f413 Gitweb: https://git.kernel.org/tip/f68a40ee4732731f149961abab27a45b6c11f413 Author: Fabio Estevam <[email protected]> AuthorDate: Tue, 07 Mar 2023 09:43:13 -03:00 Committer: Daniel Lezcano <[email protected]> CommitterDate: Mon, 24 Apr 2023 16:56:13 +02:00
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.
--- drivers/clocksource/timer-imx-gpt.c | 19 ------------------- include/soc/imx/timer.h | 7 ------- 2 files changed, 26 deletions(-)
drivers/clocksource/timer-imx-gpt.c +0 -19
@@ -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;
include/soc/imx/timer.h +0 -7
@@ -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__ */