summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/sram.c
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2009-06-06 06:45:14 +0200
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 09:56:57 +0200
commit1d3bba61f69f447f11aa88e82c5840319962d4cd (patch)
treee18b0db709fafcd4ed46c47e5291b68ed9ce55ee /arch/arm/mach-davinci/sram.c
parentdavinci: Kconfig: enable EVMs by default when SoCs are enabled (diff)
downloadlinux-1d3bba61f69f447f11aa88e82c5840319962d4cd.tar.xz
linux-1d3bba61f69f447f11aa88e82c5840319962d4cd.zip
davinci: sram warning fix
CC arch/arm/mach-davinci/sram.o arch/arm/mach-davinci/sram.c: In function 'sram_init': arch/arm/mach-davinci/sram.c:63: warning: comparison of distinct pointer types lacks a cast Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/sram.c')
-rw-r--r--arch/arm/mach-davinci/sram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/sram.c b/arch/arm/mach-davinci/sram.c
index db54b2a66b4d..4f1fc9b318b3 100644
--- a/arch/arm/mach-davinci/sram.c
+++ b/arch/arm/mach-davinci/sram.c
@@ -60,7 +60,7 @@ static int __init sram_init(void)
int status = 0;
if (len) {
- len = min(len, SRAM_SIZE);
+ len = min_t(unsigned, len, SRAM_SIZE);
sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1);
if (!sram_pool)
status = -ENOMEM;