diff options
author | Heiko Stuebner <heiko@sntech.de> | 2013-01-29 22:25:22 +0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-02-04 03:52:39 +0400 |
commit | d8fdec168542971f6ffbf0883c8be2e9bbb22ca6 (patch) | |
tree | 93220f10f43ce2ab28ace67e3628554f0e07661f /arch/arm/mach-s3c24xx/irq-pm.c | |
parent | 1f629b7a3ced8e73784a9ae3b0d9039496878f18 (diff) | |
download | linux-d8fdec168542971f6ffbf0883c8be2e9bbb22ca6.tar.xz |
ARM: S3C24XX: Move irq syscore-ops to irq-pm
With this the definition of s3c24xx_irq_syscore_ops can also move to
common.h from plat/pm.h and the definitions of s3c24xx_irq_suspend
and s3c24xx_irq_resume are also not necessary anymore in plat/pm.h
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx/irq-pm.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/irq-pm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c24xx/irq-pm.c b/arch/arm/mach-s3c24xx/irq-pm.c index 0efb2e2848c8..d48126d9fbaf 100644 --- a/arch/arm/mach-s3c24xx/irq-pm.c +++ b/arch/arm/mach-s3c24xx/irq-pm.c @@ -15,6 +15,7 @@ #include <linux/module.h> #include <linux/interrupt.h> #include <linux/irq.h> +#include <linux/syscore_ops.h> #include <plat/cpu.h> #include <plat/pm.h> @@ -64,7 +65,7 @@ static unsigned long save_extint[3]; static unsigned long save_eintflt[4]; static unsigned long save_eintmask; -int s3c24xx_irq_suspend(void) +static int s3c24xx_irq_suspend(void) { unsigned int i; @@ -80,7 +81,7 @@ int s3c24xx_irq_suspend(void) return 0; } -void s3c24xx_irq_resume(void) +static void s3c24xx_irq_resume(void) { unsigned int i; @@ -93,3 +94,8 @@ void s3c24xx_irq_resume(void) s3c_pm_do_restore(irq_save, ARRAY_SIZE(irq_save)); __raw_writel(save_eintmask, S3C24XX_EINTMASK); } + +struct syscore_ops s3c24xx_irq_syscore_ops = { + .suspend = s3c24xx_irq_suspend, + .resume = s3c24xx_irq_resume, +}; |