summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorRamesh Thomas <ramesh.thomas@intel.com>2016-10-03 19:15:36 -0700
committerAnas Nashif <nashif@linux.intel.com>2016-10-04 12:27:56 +0000
commitcda7bf3b2a57171c2e8324eafd0cde9081c4a281 (patch)
tree296c34bee387ea532a7f79c305d817a383a0ac50 /samples
parent773dcc34aeb1558ffbd4bc29c9c5e65e936be1fe (diff)
samples: power_mgmt: Fix compile bugs flagged by llvm
Change-Id: Id062f1d6f1eef6b98d040dcd16eb34fa4bd8bb30 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/power/power_mgr/src/main.c2
-rw-r--r--samples/power/quark_se/src/resume.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/power/power_mgr/src/main.c b/samples/power/power_mgr/src/main.c
index f16ca26e2..100385583 100644
--- a/samples/power/power_mgr/src/main.c
+++ b/samples/power/power_mgr/src/main.c
@@ -372,7 +372,7 @@ static int setup_gpio(void)
static int wait_gpio_low(void)
{
int ret;
- int v;
+ uint32_t v;
/* Start with high */
do {
diff --git a/samples/power/quark_se/src/resume.S b/samples/power/quark_se/src/resume.S
index 9b83134a8..7f1cbbb5c 100644
--- a/samples/power/quark_se/src/resume.S
+++ b/samples/power/quark_se/src/resume.S
@@ -30,7 +30,7 @@ SECTION_FUNC(TEXT, _sys_soc_resume)
*/
movl $0xb0800104, %eax
- cmp $0x00, (%eax)
+ cmpl $0x00, (%eax)
je regular_boot
jmp restore_trap