fix a compiler warning in the Sidewinder board specific code
authorGabor Juhos <juhosg@openwrt.org>
Tue, 22 Apr 2008 16:15:38 +0000 (16:15 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 22 Apr 2008 16:15:38 +0000 (16:15 +0000)
SVN-Revision: 10911

target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch
target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch
target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch

index 48d567f6f4d9572c011ba77d68a3ce148eeffc1b..a83c421cbf7f276854d24fc5792b44d63e7baf5a 100644 (file)
@@ -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 = {
index 48d567f6f4d9572c011ba77d68a3ce148eeffc1b..a83c421cbf7f276854d24fc5792b44d63e7baf5a 100644 (file)
@@ -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 = {
index 48d567f6f4d9572c011ba77d68a3ce148eeffc1b..a83c421cbf7f276854d24fc5792b44d63e7baf5a 100644 (file)
@@ -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 = {