--- zzzz-none-000/linux-3.10.107/arch/arm/mach-s3c24xx/mach-mini2440.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-s3c24xx/mach-mini2440.c 2021-02-04 17:41:59.000000000 +0000 @@ -23,8 +23,9 @@ #include #include #include +#include #include -#include +#include #include #include #include @@ -37,11 +38,11 @@ #include #include -#include #include #include #include #include +#include #include #include #include @@ -53,7 +54,6 @@ #include #include -#include #include #include #include @@ -524,11 +524,16 @@ static void __init mini2440_map_io(void) { s3c24xx_init_io(mini2440_iodesc, ARRAY_SIZE(mini2440_iodesc)); - s3c24xx_init_clocks(12000000); s3c24xx_init_uarts(mini2440_uartcfgs, ARRAY_SIZE(mini2440_uartcfgs)); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); } +static void __init mini2440_init_time(void) +{ + s3c2440_init_clocks(12000000); + samsung_timer_init(); +} + /* * mini2440_features string * @@ -689,6 +694,5 @@ .map_io = mini2440_map_io, .init_machine = mini2440_init, .init_irq = s3c2440_init_irq, - .init_time = samsung_timer_init, - .restart = s3c244x_restart, + .init_time = mini2440_init_time, MACHINE_END