aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-08-15 05:39:29 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-08-15 05:39:29 +0000
commit6e3f6d99f94c6be4d841ea039e37c1d4f3001762 (patch)
tree3bf847e3f1e2f7e852b443b3e3e8c315e7c1e8ed /target
parent461fc7d3a947618dce21323dd3adb39eec9eadee (diff)
downloadupstream-6e3f6d99f94c6be4d841ea039e37c1d4f3001762.tar.gz
upstream-6e3f6d99f94c6be4d841ea039e37c1d4f3001762.tar.bz2
upstream-6e3f6d99f94c6be4d841ea039e37c1d4f3001762.zip
ixp4xx: fix compiler warnings in tw5334-setup.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22654 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch13
-rw-r--r--target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch13
-rw-r--r--target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch13
-rw-r--r--target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch13
4 files changed, 28 insertions, 24 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch b/target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch
index 6370c99835..bed2c5dba3 100644
--- a/target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch
@@ -35,7 +35,7 @@
obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
--- /dev/null
+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
-@@ -0,0 +1,162 @@
+@@ -0,0 +1,163 @@
+/*
+ * arch/arm/mach-ixp4xx/tw5334-setup.c
+ *
@@ -169,14 +169,15 @@
+ */
+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
+ if (f) {
-+ for (i = 0; i < 6; i++)
++ for (i = 0; i < 6; i++) {
+#ifdef __ARMEB__
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
+#else
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
+#endif
++ }
+ iounmap(f);
+ }
+
diff --git a/target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch b/target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch
index 6370c99835..bed2c5dba3 100644
--- a/target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch
@@ -35,7 +35,7 @@
obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
--- /dev/null
+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
-@@ -0,0 +1,162 @@
+@@ -0,0 +1,163 @@
+/*
+ * arch/arm/mach-ixp4xx/tw5334-setup.c
+ *
@@ -169,14 +169,15 @@
+ */
+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
+ if (f) {
-+ for (i = 0; i < 6; i++)
++ for (i = 0; i < 6; i++) {
+#ifdef __ARMEB__
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
+#else
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
+#endif
++ }
+ iounmap(f);
+ }
+
diff --git a/target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch b/target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch
index 6370c99835..bed2c5dba3 100644
--- a/target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch
@@ -35,7 +35,7 @@
obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
--- /dev/null
+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
-@@ -0,0 +1,162 @@
+@@ -0,0 +1,163 @@
+/*
+ * arch/arm/mach-ixp4xx/tw5334-setup.c
+ *
@@ -169,14 +169,15 @@
+ */
+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
+ if (f) {
-+ for (i = 0; i < 6; i++)
++ for (i = 0; i < 6; i++) {
+#ifdef __ARMEB__
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
+#else
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
+#endif
++ }
+ iounmap(f);
+ }
+
diff --git a/target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch b/target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch
index 6370c99835..bed2c5dba3 100644
--- a/target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch
@@ -35,7 +35,7 @@
obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
--- /dev/null
+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
-@@ -0,0 +1,162 @@
+@@ -0,0 +1,163 @@
+/*
+ * arch/arm/mach-ixp4xx/tw5334-setup.c
+ *
@@ -169,14 +169,15 @@
+ */
+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
+ if (f) {
-+ for (i = 0; i < 6; i++)
++ for (i = 0; i < 6; i++) {
+#ifdef __ARMEB__
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
+#else
-+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
-+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
++ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
++ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
+#endif
++ }
+ iounmap(f);
+ }
+