aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-04-22 16:15:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-04-22 16:15:38 +0000
commitc0f8fa8757b5acf1d1fc3ba0813f9fd8ce1d94db (patch)
tree2ba818c5a2a02f90d5f7090309bb595891cebb6d
parent8231561bce33b9bf14fa30c172a5a5655e121c40 (diff)
downloadupstream-c0f8fa8757b5acf1d1fc3ba0813f9fd8ce1d94db.tar.gz
upstream-c0f8fa8757b5acf1d1fc3ba0813f9fd8ce1d94db.tar.bz2
upstream-c0f8fa8757b5acf1d1fc3ba0813f9fd8ce1d94db.zip
fix a compiler warning in the Sidewinder board specific code
SVN-Revision: 10911
-rw-r--r--target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch4
-rw-r--r--target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch4
-rw-r--r--target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch4
3 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch b/target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch
index 48d567f6f4..a83c421cbf 100644
--- a/target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch
@@ -204,8 +204,8 @@ diff -Nur linux-2.6.23/arch/arm/mach-ixp4xx/sidewinder-setup.c linux-2.6.23-owrt
+ .dev = {
+ .platform_data = sidewinder_uart_data,
+ },
-+ .num_resources = 2,
-+ .resource = &sidewinder_uart_resources,
++ .num_resources = ARRAY_SIZE(sidewinder_uart_resources),
++ .resource = sidewinder_uart_resources,
+};
+
+static struct platform_device *sidewinder_devices[] __initdata = {
diff --git a/target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch b/target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch
index 48d567f6f4..a83c421cbf 100644
--- a/target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch
@@ -204,8 +204,8 @@ diff -Nur linux-2.6.23/arch/arm/mach-ixp4xx/sidewinder-setup.c linux-2.6.23-owrt
+ .dev = {
+ .platform_data = sidewinder_uart_data,
+ },
-+ .num_resources = 2,
-+ .resource = &sidewinder_uart_resources,
++ .num_resources = ARRAY_SIZE(sidewinder_uart_resources),
++ .resource = sidewinder_uart_resources,
+};
+
+static struct platform_device *sidewinder_devices[] __initdata = {
diff --git a/target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch b/target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch
index 48d567f6f4..a83c421cbf 100644
--- a/target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch
@@ -204,8 +204,8 @@ diff -Nur linux-2.6.23/arch/arm/mach-ixp4xx/sidewinder-setup.c linux-2.6.23-owrt
+ .dev = {
+ .platform_data = sidewinder_uart_data,
+ },
-+ .num_resources = 2,
-+ .resource = &sidewinder_uart_resources,
++ .num_resources = ARRAY_SIZE(sidewinder_uart_resources),
++ .resource = sidewinder_uart_resources,
+};
+
+static struct platform_device *sidewinder_devices[] __initdata = {