summaryrefslogtreecommitdiff
path: root/arch/arm/mach-pxa/generic.h
diff options
context:
space:
mode:
authoreric miao <eric.miao@marvell.com>2008-02-03 15:49:09 +0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-04-19 11:29:04 +0100
commit3d3934c357103504d0f0a5e9ab808bb57e356f6a (patch)
treec5b2dc3b2c6e028aab06fe087b2e20d3e961f4f4 /arch/arm/mach-pxa/generic.h
parent7facc2f9374159795af2a3f8b3e682b4ee230643 (diff)
[ARM] pxa: move ARRAY_AND_SIZE definition to generic.h
for use by other platforms Signed-off-by: eric miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/generic.h')
-rw-r--r--arch/arm/mach-pxa/generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h
index 8bca89c4a256..5bb7ae757831 100644
--- a/arch/arm/mach-pxa/generic.h
+++ b/arch/arm/mach-pxa/generic.h
@@ -29,6 +29,8 @@ extern int pxa_last_gpio;
mi->bank[__nr].size = (__size), \
mi->bank[__nr].node = (((unsigned)(__start) - PHYS_OFFSET) >> 27)
+#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
+
#ifdef CONFIG_PXA25x
extern unsigned pxa25x_get_clk_frequency_khz(int);
extern unsigned pxa25x_get_memclk_frequency_10khz(void);