summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorKoro Chen <koro.chen@mediatek.com>2016-04-14 15:22:32 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-04-14 06:56:48 -0700
commite07d460d549df5698fe983a0735da342f4f5a194 (patch)
tree97902dceae66105c7617faac84c624cc4a2da113 /power
parent8d2aac6bef0307dfcb0c48eb3d04e7d843764731 (diff)
downloadchrome-ec-e07d460d549df5698fe983a0735da342f4f5a194.tar.gz
power: mediatek: correct a typo in set_pmic_pwron
BRANCH=none BUG=chrome-os-partner:52343 TEST=power up and should not see "5V power not ready" Change-Id: Ie8e3fd1610ff14356632205d9d81d31a838f9162 Signed-off-by: Koro Chen <koro.chen@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/338886 Reviewed-by: Tony Lin <tonycwlin@google.com> Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/mediatek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/mediatek.c b/power/mediatek.c
index a619d050ea..bf4f0e5cc1 100644
--- a/power/mediatek.c
+++ b/power/mediatek.c
@@ -290,7 +290,7 @@ static void set_pmic_pwron(int asserted)
while (asserted && !gpio_get_level(GPIO_5V_POWER_GOOD) &&
get_time().val < poll_deadline.val)
usleep(PMIC_WAIT_FOR_5V_POWER_GOOD);
- if (gpio_get_level(GPIO_5V_POWER_GOOD))
+ if (!gpio_get_level(GPIO_5V_POWER_GOOD))
CPRINTS("5V power not ready");
}