--- zzzz-none-000/linux-3.10.107/arch/arm/mach-s3c24xx/mach-gta02.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-s3c24xx/mach-gta02.c 2021-02-04 17:41:59.000000000 +0000 @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -75,12 +76,12 @@ #include #include #include +#include #include #include #include #include -#include #include #include "common.h" @@ -195,7 +196,7 @@ * If the PCF50633 ADC is disabled we fallback to a * 100mA limit for safety. */ - pcf50633_mbc_usb_curlim_set(pcf, 100); + pcf50633_mbc_usb_curlim_set(gta02_pcf, 100); #endif } @@ -500,7 +501,6 @@ static void __init gta02_map_io(void) { s3c24xx_init_io(gta02_iodesc, ARRAY_SIZE(gta02_iodesc)); - s3c24xx_init_clocks(12000000); s3c24xx_init_uarts(gta02_uartcfgs, ARRAY_SIZE(gta02_uartcfgs)); samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); } @@ -584,6 +584,11 @@ regulator_has_full_constraints(); } +static void __init gta02_init_time(void) +{ + s3c2442_init_clocks(12000000); + samsung_timer_init(); +} MACHINE_START(NEO1973_GTA02, "GTA02") /* Maintainer: Nelson Castillo */ @@ -591,6 +596,5 @@ .map_io = gta02_map_io, .init_irq = s3c2442_init_irq, .init_machine = gta02_machine_init, - .init_time = samsung_timer_init, - .restart = s3c244x_restart, + .init_time = gta02_init_time, MACHINE_END