linux-2.6.23: Fixup of mpc8313e-rdb-leds.patch.
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Wed, 28 Nov 2007 23:50:44 +0000 (23:50 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Wed, 28 Nov 2007 23:50:44 +0000 (23:50 +0000)
packages/linux/linux-2.6.23/mpc8313e-rdb/mpc8313e-rdb-leds.patch
packages/linux/linux_2.6.23.bb

index cc5a120..7eadfc6 100644 (file)
@@ -18,7 +18,7 @@ Index: linux-2.6.23/drivers/leds/Kconfig
 Index: linux-2.6.23/drivers/leds/leds-mpc8313e-rdb.c
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.23/drivers/leds/leds-mpc8313e-rdb.c      2007-11-29 00:32:27.000000000 +0100
++++ linux-2.6.23/drivers/leds/leds-mpc8313e-rdb.c      2007-11-29 00:45:42.000000000 +0100
 @@ -0,0 +1,128 @@
 +/*
 + * drivers/leds/leds-mpc8313e-rdb.c
@@ -35,10 +35,10 @@ Index: linux-2.6.23/drivers/leds/leds-mpc8313e-rdb.c
 +
 +#include <linux/module.h>
 +#include <linux/platform_device.h>
++#include <linux/ioport.h>
 +#include <linux/leds.h>
 +#include <linux/err.h>
 +#include <asm/io.h>
-+#include <asm/ioport.h>
 +
 +int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain,
 +                      int assignment, int has_irq);
@@ -119,7 +119,7 @@ Index: linux-2.6.23/drivers/leds/leds-mpc8313e-rdb.c
 +
 +static int __init mpc8313leds_init(void)
 +{
-+      led_mem = request_mem_region(0xfa000000, 0x100);
++      led_mem = request_mem_region(0xfa000000, 0x100, "mpc8313-leds");
 +      if (led_mem == NULL) return -ENOMEM;
 +      p = ioremap(0xfa000000, 0x100);
 +      if (p == NULL)
index 1fa0287..6d9a3c7 100644 (file)
@@ -6,7 +6,7 @@ DEFAULT_PREFERENCE_cm-x270 = "1"
 DEFAULT_PREFERENCE_mpc8313e-rdb = "1"
 DEFAULT_PREFERENCE_mpc8323e-rdb = "1"
 
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \
           file://binutils-buildid-arm.patch;patch=1 \
@@ -24,7 +24,8 @@ SRC_URI_append_cm-x270 = "\
        file://0008-cm-x270-nand-simplify-name.patch;patch=1"
 
 SRC_URI_append_mpc8313e-rdb = "\
-       file://mpc831x-nand.patch;patch=1" 
+       file://mpc831x-nand.patch;patch=1 \
+       file://mpc8313e-rdb-leds.patch;patch=1" 
 
 SRC_URI_append_mpc8323e-rdb = "\
        file://mpc832x-leds.patch;patch=1"