summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2011-05-12 14:54:51 +0200
committerHenrik Aberg <henrik.aberg@stericsson.com>2011-05-18 09:40:17 +0200
commit04ea8812a5b70acbd9590de3a93f65c4bde5c297 (patch)
tree2835f6ee8779e490e83da7140b79b24e94d9e51a
parentf4df45ff7af807ca0915f097be97181a3c5ee233 (diff)
Fix Introduced warnings
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
-rw-r--r--arch/arm/mach-ux500/pm/context.c1
-rw-r--r--arch/arm/mach-ux500/prcmu-debug.h2
-rw-r--r--drivers/mfd/ab8500-debugfs.c6
3 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-ux500/pm/context.c b/arch/arm/mach-ux500/pm/context.c
index 7ff2c5bf2ff..3bfb3acf8c9 100644
--- a/arch/arm/mach-ux500/pm/context.c
+++ b/arch/arm/mach-ux500/pm/context.c
@@ -686,7 +686,6 @@ void context_gpio_mux_safe_switch(bool begin)
{
int i;
- static u32 slpc[GPIO_NUM_BANKS];
static u32 rwimsc[GPIO_NUM_BANKS];
static u32 fwimsc[GPIO_NUM_BANKS];
diff --git a/arch/arm/mach-ux500/prcmu-debug.h b/arch/arm/mach-ux500/prcmu-debug.h
index c536aed1f6b..79e03e5b208 100644
--- a/arch/arm/mach-ux500/prcmu-debug.h
+++ b/arch/arm/mach-ux500/prcmu-debug.h
@@ -18,6 +18,6 @@ int prcmu_debug_init(void);
#else
static inline void prcmu_debug_ape_opp_log(u8 opp) {}
static inline void prcmu_debug_ddr_opp_log(u8 opp) {}
-static inline int prcmu_debug_init(void) {}
+static inline int prcmu_debug_init(void) {return 0;}
#endif
#endif
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index ad05bc072aa..1b41e9d33e6 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -793,9 +793,9 @@ static ssize_t hwreg_common_write(char *b, struct hwreg_cfg *cfg,
/* args are ok, update target cfg (mainly for read) */
*cfg = loc;
-#if ABB_HWREG_DEBUG
- pr_warn("HWREG request: %s, %s, addr=0x%08X, mask=0x%X, shift=%d
- value=0x%X\n", (write) ? "write" : "read",
+#ifdef ABB_HWREG_DEBUG
+ pr_warn("HWREG request: %s, %s, addr=0x%08X, mask=0x%X, shift=%d"
+ "value=0x%X\n", (write) ? "write" : "read",
REG_FMT_DEC(cfg) ? "decimal" : "hexa",
cfg->addr, cfg->mask, cfg->shift, val);
#endif