mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
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>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user