From 50ce434c2399586a71a868795401b59e04486824 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Thu, 2 Apr 2015 17:27:34 +0200 Subject: [PATCH] memory: tegra: Explicitly mark defines unsigned Some of these constants are large and will be truncated on 64-bit build, causing warnings. Mark them explicitly unsigned to avoid the warning. Signed-off-by: Thierry Reding --- drivers/memory/tegra/tegra124-emc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/tegra/tegra124-emc.c b/drivers/memory/tegra/tegra124-emc.c index 26010adce667..a53ef1b8147d 100644 --- a/drivers/memory/tegra/tegra124-emc.c +++ b/drivers/memory/tegra/tegra124-emc.c @@ -273,8 +273,8 @@ #define EMC_PUTERM_ADJ 0x574 #define DRAM_DEV_SEL_ALL 0 -#define DRAM_DEV_SEL_0 (2 << 30) -#define DRAM_DEV_SEL_1 (1 << 30) +#define DRAM_DEV_SEL_0 (2U << 30) +#define DRAM_DEV_SEL_1 (1U << 30) #define EMC_CFG_POWER_FEATURES_MASK \ (EMC_CFG_DYN_SREF | EMC_CFG_DRAM_ACPD | EMC_CFG_DRAM_CLKSTOP_SR | \ -- 2.39.5