Fixes for breakage resulting from syscore_ops patch on s3c24xx
Subsystems (3)
v3 cover Fixes for breakage resulting from syscore_ops patch on s3c24xx
The syscore_ops patch from Rafael J. Wysocki introduced some small glitches for the S3C24XX cpus resulting in compile errors.
Changes since v1: add missing Signed-off-by lines
Changes since v2: fix mangled tabs
Heiko Stuebner (3):
Fix missing struct for s3c2410_dma_chan in s3c2410_dma_suspend_chan Move s3c24xx_irq_syscore_ops to plat-s3c24xx/irq.c remove the now empty mach-s3c2410/irq.c
arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2410/irq.c | 34 ---------------------------------- arch/arm/plat-s3c24xx/dma.c | 2 +- arch/arm/plat-s3c24xx/irq.c | 6 ++++++ 4 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 arch/arm/mach-s3c2410/irq.c
PATCH v3 1/3 Fix missing struct for s3c2410_dma_chan in s3c2410_dma_suspend_chan
s3c2410_dma_chan is not a type itself, so struct is required.
--- arch/arm/plat-s3c24xx/dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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.1
PATCH v3 2/3 Move s3c24xx_irq_syscore_ops to plat-s3c24xx/irq.c
In reply to Heiko Stübners3c24xx_irq_syscore_ops was only defined for s3c2410 cpus leading to compile errors on for example 2412 and 2416.
--- arch/arm/mach-s3c2410/irq.c | 5 ----- arch/arm/plat-s3c24xx/irq.c | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-s3c2410/irq.c +0 -5
@@ -27,8 +27,3 @@#include <plat/cpu.h> #include <plat/pm.h> - -struct syscore_ops s3c24xx_irq_syscore_ops = { - .suspend = s3c24xx_irq_suspend, - .resume = s3c24xx_irq_resume, -};
arch/arm/plat-s3c24xx/irq.c +6 -0
@@ -23,6 +23,7 @@#include <linux/interrupt.h> #include <linux/ioport.h> #include <linux/sysdev.h> +#include <linux/syscore_ops.h> #include <asm/irq.h> #include <asm/mach/irq.h>
@@ -668,3 +669,8 @@ void __init s3c24xx_init_irq(void)irqdbf ("s3c2410: registered interrupt handlers\n" ); } + +struct syscore_ops s3c24xx_irq_syscore_ops = { + .suspend = s3c24xx_irq_suspend, + .resume = s3c24xx_irq_resume, +};
Signature · 1 line
1.7.1
PATCH v3 3/3 remove the now empty mach-s3c2410/irq.c
In reply to Heiko Stübner--- arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2410/irq.c | 29 ----------------------------- 2 files changed, 0 insertions(+), 30 deletions(-) delete mode 100644 arch/arm/mach-s3c2410/irq.c
arch/arm/mach-s3c2410/Makefile +0 -1
@@ -10,7 +10,6 @@ obj-n := obj- := obj-$(CONFIG_CPU_S3C2410) += s3c2410.o -obj-$(CONFIG_CPU_S3C2410) += irq.o obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o obj-$(CONFIG_S3C2410_PM) += pm.o sleep.o
arch/arm/mach-s3c2410/irq.c deleted +0 -29
@@ -1,29 +0,0 @@ -/* linux/arch/arm/mach-s3c2410/irq.c -* -* Copyright (c) 2006 Simtec Electronics -* Ben Dooks <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -*/ - -#include <linux/init.h> -#include <linux/module.h> -#include <linux/interrupt.h> -#include <linux/ioport.h> -#include <linux/syscore_ops.h> - -#include <plat/cpu.h> -#include <plat/pm.h>
Signature · 1 line
1.7.1
v3 cover Fixes for breakage resulting from syscore_ops patch on s3c24xx
In reply to Heiko StübnerQuoted 11 lines · Heiko St?bner
The
syscore_opspatch from Rafael J. Wysocki introduced some small glitches for the S3C24XX cpus resulting in compile errors.Changes since v1: add missing Signed-off-by lines
Changes since v2: fix mangled tabsHeiko Stuebner (3):
Fix missing struct fors3c2410_dma_chanins3c2410_dma_suspend_chanMoves3c24xx_irq_syscore_opstoplat-s3c24xx/irq.cremove the now emptymach-s3c2410/irq.c
Quoted 6 lines
arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2410/irq.c | 34 ---------------------------------- arch/arm/plat-s3c24xx/dma.c | 2 +- arch/arm/plat-s3c24xx/irq.c | 6 ++++++ 4 files changed, 7 insertions(+), 36 deletions(-)delete mode 100644
arch/arm/mach-s3c2410/irq.c
Looks OK, will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.