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>
This commit is contained in:

committed by
Kukjin Kim

parent
1f629b7a3c
commit
d8fdec1685
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user