ixp4xx: fix compiler warnings in tw5334-setup.c
authorGabor Juhos <juhosg@openwrt.org>
Sun, 15 Aug 2010 05:39:29 +0000 (05:39 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 15 Aug 2010 05:39:29 +0000 (05:39 +0000)
SVN-Revision: 22654

target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch
target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch
target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch
target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch

index 6370c99835449dd2e4c3511fa7cdfbfed06ea386..bed2c5dba38b3d14b7426945d9d5206969d5f964 100644 (file)
@@ -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
 + *
 +       */
 +      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);
 +      }
 +
index 6370c99835449dd2e4c3511fa7cdfbfed06ea386..bed2c5dba38b3d14b7426945d9d5206969d5f964 100644 (file)
@@ -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
 + *
 +       */
 +      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);
 +      }
 +
index 6370c99835449dd2e4c3511fa7cdfbfed06ea386..bed2c5dba38b3d14b7426945d9d5206969d5f964 100644 (file)
@@ -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
 + *
 +       */
 +      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);
 +      }
 +
index 6370c99835449dd2e4c3511fa7cdfbfed06ea386..bed2c5dba38b3d14b7426945d9d5206969d5f964 100644 (file)
@@ -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
 + *
 +       */
 +      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);
 +      }
 +