From 2e8f91dc35957409b25fdc01f63465157b8d1a09 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 10 Jan 2006 23:24:25 +0000 Subject: [PATCH] debian/patches/arm-fix-dc21285.patch: Fix compilation errors in drivers/mtd/maps/dc21285.c. svn path=/dists/trunk/linux-2.6/; revision=5399 --- debian/changelog | 2 ++ debian/patches/arm-fix-dc21285.patch | 40 ++++++++++++++++++++++++++++ debian/patches/series/1 | 1 + 3 files changed, 43 insertions(+) create mode 100644 debian/patches/arm-fix-dc21285.patch diff --git a/debian/changelog b/debian/changelog index 83f982738..f4eee0e48 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,8 @@ linux-2.6 (2.6.15-3) UNRELEASED; urgency=low NE2K). * [arm] Allow modules to be unloaded. * [arm] Enable more framebuffer drivers on Footbridge. + * debian/patches/arm-fix-dc21285.patch: Fix compilation errors in + drivers/mtd/maps/dc21285.c. -- Martin Michlmayr Tue, 10 Jan 2006 22:59:19 +0000 diff --git a/debian/patches/arm-fix-dc21285.patch b/debian/patches/arm-fix-dc21285.patch new file mode 100644 index 000000000..2bbcd6919 --- /dev/null +++ b/debian/patches/arm-fix-dc21285.patch @@ -0,0 +1,40 @@ +## DP: Fix compilation errors in dc21285.c +## DP: Patch author: Martin Michlmayr +## DP: Upstream status: Submitted +# + +--- old/drivers/mtd/maps/dc21285.c~ 2006-01-10 19:40:53.000000000 +0000 ++++ new/drivers/mtd/maps/dc21285.c 2006-01-10 19:52:14.000000000 +0000 +@@ -110,8 +110,9 @@ + { + while (len > 0) { + map_word d; +- d.x[0] = *((uint32_t*)from)++; ++ d.x[0] = *((uint32_t*)from); + dc21285_write32(map, d, to); ++ from += 4; + to += 4; + len -= 4; + } +@@ -121,8 +122,9 @@ + { + while (len > 0) { + map_word d; +- d.x[0] = *((uint16_t*)from)++; ++ d.x[0] = *((uint16_t*)from); + dc21285_write16(map, d, to); ++ from += 2; + to += 2; + len -= 2; + } +@@ -131,8 +133,9 @@ + static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) + { + map_word d; +- d.x[0] = *((uint8_t*)from)++; ++ d.x[0] = *((uint8_t*)from); + dc21285_write8(map, d, to); ++ from++; + to++; + len--; + } diff --git a/debian/patches/series/1 b/debian/patches/series/1 index 6ad0efab0..9aa7ed84b 100644 --- a/debian/patches/series/1 +++ b/debian/patches/series/1 @@ -21,4 +21,5 @@ + powerpc-mv643xx-spinlock-fix-support.patch + powerpc-prep-utah-ide-interrupt.patch + powerpc-mv643xx-hotplug-support.patch ++ arm-fix-dc21285.patch