--- zzzz-none-000/linux-3.10.107/arch/arm/mach-s3c24xx/s3c2416.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/mach-s3c24xx/s3c2416.c 2021-02-04 17:41:59.000000000 +0000 @@ -35,17 +35,20 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include #include +#include #include #include @@ -56,13 +59,12 @@ #include #include -#include -#include #include -#include -#include #include "common.h" +#include "fb-core.h" +#include "nand-core.h" +#include "spi-core.h" static struct map_desc s3c2416_iodesc[] __initdata = { IODESC_ENT(WATCHDOG), @@ -79,14 +81,6 @@ .bus = &s3c2416_subsys, }; -void s3c2416_restart(char mode, const char *cmd) -{ - if (mode == 's') - soft_restart(0); - - __raw_writel(S3C2443_SWRST_RESET, S3C2443_SWRST); -} - int __init s3c2416_init(void) { printk(KERN_INFO "S3C2416: Initializing architecture\n"); @@ -104,7 +98,7 @@ s3c_adc_setname("s3c2416-adc"); s3c_rtc_setname("s3c2416-rtc"); -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP register_syscore_ops(&s3c2416_pm_syscore_ops); register_syscore_ops(&s3c24xx_irq_syscore_ops); register_syscore_ops(&s3c2416_irq_syscore_ops);