Fix compile failures by syscore_ops change on s3c2416
Subsystems (3)
PATCH 1/1 Fix compile failures by syscore_ops change on s3c2416
s3c24xx_irq_syscore_ops is only defined in mach-s3c2410/irq.c which is not used by s3c2416.
Also s3c2410_dma_chan needs a struct prefix
---
It feels wrong to put a double of s3c24xx_irq_syscore_ops in another file, but I haven't found a better place for the whole thing yet. Might plat-s3c24xx/irq-pm.c be better suited to host s3c24xx_irq_syscore_ops for all s3c-socs?
arch/arm/mach-s3c2416/irq.c | 6 ++++++ arch/arm/plat-s3c24xx/dma.c | 2 +- 2 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-s3c2416/irq.c +6 -0
@@ -27,6 +27,7 @@#include <linux/ioport.h> #include <linux/sysdev.h> #include <linux/io.h> +#include <linux/syscore_ops.h> #include <mach/hardware.h> #include <asm/irq.h>
@@ -238,6 +239,11 @@ static struct sysdev_driver s3c2416_irq_driver = { .add = s3c2416_irq_add, }; +struct syscore_ops s3c24xx_irq_syscore_ops = { + .suspend = s3c24xx_irq_suspend, + .resume = s3c24xx_irq_resume, +}; +static int __init s3c2416_irq_init (void ) {return sysdev_driver_register (&s3c2416_sysclass, &s3c2416_irq_driver);
arch/arm/plat-s3c24xx/dma.c +1 -1
@@ -1199,7 +1199,7 @@ EXPORT_SYMBOL(s3c2410_dma_getposition);#ifdef CONFIG_PM -static void s3c2410_dma_suspend_chan (s3c2410_dma_chan *cp) +static void s3c2410_dma_suspend_chan (struct s3c2410_dma_chan *cp) {printk (KERN_DEBUG "suspending dma channel %d\n" , cp->number);
Signature · 1 line
1.7.2.3
PATCH 1/1 Fix compile failures by syscore_ops change on s3c2416
Hello.
Quoted 3 lines · Heiko St?bner
s3c24xx_irq_syscore_opsis only defined inmach-s3c2410/irq.cwhich is not used by s3c2416.
Alsos3c2410_dma_channeeds a struct prefix
Saying "also" seems a good sign that you should do two patches instead.
WBR, Sergei
PATCH 1/1 Fix compile failures by syscore_ops change on s3c2416
Am Dienstag 31 Mai 2011 schrieb Sergei Shtylyov:
Quoted 6 lines · Heiko St?bner
Quoted 3 lines
s3c24xx_irq_syscore_opsis only defined inmach-s3c2410/irq.cwhich is not used by s3c2416.
Alsos3c2410_dma_channeeds a struct prefixSaying "also" seems a good sign that you should do two patches instead.
you are right of course :-) ... I have redone them now
Heiko