summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@google.com>2015-11-05 15:20:31 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-11 11:00:56 -0800
commit1ade79a8e60070f67960537aec8c564362cd6580 (patch)
tree7850e6c7ca3f8f17671774922c5c36d15d659e39 /chip
parent77e76fc7fb8ed606386eae7f8528ead205d740ea (diff)
downloadchrome-ec-1ade79a8e60070f67960537aec8c564362cd6580.tar.gz
cleanup: Fix gcc 5.2.1 compile errors
BUG=chromium:552006 BRANCH=None TEST=`make buildall -j` and also verify panic reporting works on glados_pd. Change-Id: Ic9f1ec6b5297389df0d46bb38a67c156901ed956 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/311253 Commit-Ready: Shawn N <shawnn@gmail.com> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/mec1322/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/mec1322/flash.c b/chip/mec1322/flash.c
index d628109108..194926c15a 100644
--- a/chip/mec1322/flash.c
+++ b/chip/mec1322/flash.c
@@ -223,6 +223,8 @@ int flash_physical_protect_at_boot(enum flash_wp_range range)
size = CONFIG_WP_STORAGE_SIZE;
flashwp = SPI_WP_HARDWARE;
break;
+ default:
+ return EC_ERROR_INVAL;
}
ret = spi_flash_set_protect(offset, size);