From 14537ae0c65e537b20512d6bd6c55c81ee0a6ab6 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 22 Apr 2008 16:15:38 +0000 Subject: [ixp4xx] fix a compiler warning in the Sidewinder board specific code git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10911 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ixp4xx/patches-2.6.23/140-sidewinder_support.patch | 4 ++-- target/linux/ixp4xx/patches-2.6.24/140-sidewinder_support.patch | 4 ++-- target/linux/ixp4xx/patches-2.6.25/140-sidewinder_support.patch | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'target') 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 48d567f6f..a83c421cb 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 48d567f6f..a83c421cb 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 48d567f6f..a83c421cb 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 = { -- cgit v1.2.3