diff options
author | Jun Lin <CHLin56@nuvoton.com> | 2021-04-21 10:45:45 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-21 07:11:17 +0000 |
commit | 095e63ea517f2b7a2c9468f3fc89393a94b79c12 (patch) | |
tree | 8a420d7906d6a50575f160558c122ae8c991ad99 | |
parent | 9a7702b34b1c2246bb094de1c9d86c7cf892b2cc (diff) | |
download | chrome-ec-095e63ea517f2b7a2c9468f3fc89393a94b79c12.tar.gz |
zephyr: shi: npcx: Fix unreachable code
cros_shi_npcx_disable() has unreachable code. Fix it.
BRANCH=none
BUG=b:182600858
TEST=zmake testall
Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I23394e698805fc9b139dc57a5d096a18dd60df73
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842706
Tested-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
-rw-r--r-- | zephyr/drivers/cros_shi/cros_shi_npcx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/drivers/cros_shi/cros_shi_npcx.c b/zephyr/drivers/cros_shi/cros_shi_npcx.c index a65fa734f7..4c05d1381a 100644 --- a/zephyr/drivers/cros_shi/cros_shi_npcx.c +++ b/zephyr/drivers/cros_shi/cros_shi_npcx.c @@ -787,13 +787,13 @@ static int cros_shi_npcx_disable(const struct device *dev) /* Configure pin-mux from SHI to GPIO. */ npcx_pinctrl_mux_configure(config->alts_list, config->alts_size, 0); - return 0; - /* * Allow deep sleep again in case CS dropped before ec was * informed in hook function and turn off SHI's interrupt in time. */ enable_sleep(SLEEP_MASK_SPI); + + return 0; } static int shi_npcx_init(const struct device *dev) |