]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memory: tegra: Explicitly mark defines unsigned
authorThierry Reding <treding@nvidia.com>
Thu, 2 Apr 2015 15:27:34 +0000 (17:27 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 2 Apr 2015 22:01:09 +0000 (00:01 +0200)
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 <treding@nvidia.com>
drivers/memory/tegra/tegra124-emc.c

index 26010adce667327bc96219d5a2223668df24e271..a53ef1b8147d3ecdfa6fc3714be42fc7c0895dd2 100644 (file)
 #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 | \