[kernel] r17598 - in dists/trunk/linux-2.6/debian: . patches/bugfix/mips patches/series

Aurelien Jarno aurel32 at alioth.debian.org
Sun Jun 5 22:02:57 UTC 2011


Author: aurel32
Date: Sun Jun  5 22:02:55 2011
New Revision: 17598

Log:
* [mips,mipsel] Update arch/mips/kernel/i8259.c to fix FTBFS.

Added:
   dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-i8259-use-struct-syscore_ops-instead-of-sysdevs.patch
Modified:
   dists/trunk/linux-2.6/debian/changelog
   dists/trunk/linux-2.6/debian/patches/series/1~experimental.2

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	Sun Jun  5 19:56:53 2011	(r17597)
+++ dists/trunk/linux-2.6/debian/changelog	Sun Jun  5 22:02:55 2011	(r17598)
@@ -6,6 +6,9 @@
   [ Hector Oron ]
   * [armel/iop32x] Fix FTBFS (Closes: #629342)
 
+  [ Aurelien Jarno ]
+  * [mips,mipsel] Update arch/mips/kernel/i8259.c to fix FTBFS.
+
  -- Ben Hutchings <ben at decadent.org.uk>  Wed, 01 Jun 2011 06:41:14 +0100
 
 linux-2.6 (3.0.0~rc1-1~experimental.1) experimental; urgency=low

Added: dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-i8259-use-struct-syscore_ops-instead-of-sysdevs.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-i8259-use-struct-syscore_ops-instead-of-sysdevs.patch	Sun Jun  5 22:02:55 2011	(r17598)
@@ -0,0 +1,74 @@
+From: Yoichi Yuasa <yuasa at linux-mips.org>
+Date: Fri, 20 May 2011 13:41:41 +0000 (+0900)
+Subject: MIPS: i8259: Use struct syscore_ops instead of sysdevs
+X-Git-Tag: linux-3.0-rc1~12
+X-Git-Url: http://git.linux-mips.org/?p=linux.git;a=commitdiff_plain;h=297b7fdeac2d202c86e4b731d6e2ba03490ce3dd
+
+MIPS: i8259: Use struct syscore_ops instead of sysdevs
+
+Signed-off-by: Yoichi Yuasa <yuasa at linux-mips.org>
+Cc: linux-mips <linux-mips at linux-mips.org>
+Patchwork: https://patchwork.linux-mips.org/patch/2394/
+Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
+---
+
+diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c
+index c018696..5c74eb7 100644
+--- a/arch/mips/kernel/i8259.c
++++ b/arch/mips/kernel/i8259.c
+@@ -14,7 +14,7 @@
+ #include <linux/interrupt.h>
+ #include <linux/kernel.h>
+ #include <linux/spinlock.h>
+-#include <linux/sysdev.h>
++#include <linux/syscore_ops.h>
+ #include <linux/irq.h>
+ 
+ #include <asm/i8259.h>
+@@ -215,14 +215,13 @@ spurious_8259A_irq:
+ 	}
+ }
+ 
+-static int i8259A_resume(struct sys_device *dev)
++static void i8259A_resume(void)
+ {
+ 	if (i8259A_auto_eoi >= 0)
+ 		init_8259A(i8259A_auto_eoi);
+-	return 0;
+ }
+ 
+-static int i8259A_shutdown(struct sys_device *dev)
++static void i8259A_shutdown(void)
+ {
+ 	/* Put the i8259A into a quiescent state that
+ 	 * the kernel initialization code can get it
+@@ -232,26 +231,17 @@ static int i8259A_shutdown(struct sys_device *dev)
+ 		outb(0xff, PIC_MASTER_IMR);	/* mask all of 8259A-1 */
+ 		outb(0xff, PIC_SLAVE_IMR);	/* mask all of 8259A-1 */
+ 	}
+-	return 0;
+ }
+ 
+-static struct sysdev_class i8259_sysdev_class = {
+-	.name = "i8259",
++static struct syscore_ops i8259_syscore_ops = {
+ 	.resume = i8259A_resume,
+ 	.shutdown = i8259A_shutdown,
+ };
+ 
+-static struct sys_device device_i8259A = {
+-	.id	= 0,
+-	.cls	= &i8259_sysdev_class,
+-};
+-
+ static int __init i8259A_init_sysfs(void)
+ {
+-	int error = sysdev_class_register(&i8259_sysdev_class);
+-	if (!error)
+-		error = sysdev_register(&device_i8259A);
+-	return error;
++	register_syscore_ops(&i8259_syscore_ops);
++	return 0;
+ }
+ 
+ device_initcall(i8259A_init_sysfs);

Modified: dists/trunk/linux-2.6/debian/patches/series/1~experimental.2
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/1~experimental.2	Sun Jun  5 19:56:53 2011	(r17597)
+++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.2	Sun Jun  5 22:02:55 2011	(r17598)
@@ -1 +1,2 @@
 + bugfix/arm/plat-iop-fixes-fail-to-build-from-source.patch
++ bugfix/mips/mips-i8259-use-struct-syscore_ops-instead-of-sysdevs.patch



More information about the Kernel-svn-changes mailing list