Skip to content

Commit b927c76

Browse files
kelvincheungbebarino
authored andcommitted
MIPS: loongson32: Update the clock initialization
The Loongson-1 clock driver is under re-implementation to add DT support. As a result, ls1x_clk_init() will be dropped soon. Therefore, call of_clk_init() for clock initialization instead. Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com> Acked-by: Stephen Boyd <sboyd@kernel.org> Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Link: https://lore.kernel.org/r/20230321111817.71756-5-keguang.zhang@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent fbdb187 commit b927c76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/mips/include/asm/mach-loongson32/platform.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extern struct platform_device ls1x_gpio1_pdev;
2020
extern struct platform_device ls1x_rtc_pdev;
2121
extern struct platform_device ls1x_wdt_pdev;
2222

23-
void __init ls1x_clk_init(void);
2423
void __init ls1x_rtc_set_extclk(struct platform_device *pdev);
2524
void __init ls1x_serial_set_uartclk(struct platform_device *pdev);
2625

arch/mips/loongson32/common/time.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include <linux/clk.h>
7+
#include <linux/of_clk.h>
78
#include <linux/interrupt.h>
89
#include <linux/sizes.h>
910
#include <asm/time.h>
@@ -211,7 +212,7 @@ void __init plat_time_init(void)
211212
struct clk *clk = NULL;
212213

213214
/* initialize LS1X clocks */
214-
ls1x_clk_init();
215+
of_clk_init(NULL);
215216

216217
#ifdef CONFIG_CEVT_CSRC_LS1X
217218
/* setup LS1X PWM timer */

0 commit comments

Comments
 (0)