summaryrefslogtreecommitdiff
path: root/board/grunt/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/grunt/board.c')
-rw-r--r--board/grunt/board.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/board/grunt/board.c b/board/grunt/board.c
index cd2ebcd215..9a4b341ee7 100644
--- a/board/grunt/board.c
+++ b/board/grunt/board.c
@@ -356,18 +356,6 @@ int pd_snk_is_vbus_provided(int port)
*/
int board_set_active_charge_port(int charge_port)
{
- static int initialized;
-
- /*
- * Reject charge port disable if our battery is critical and we
- * have yet to initialize a charge port - continue to charge using
- * charger ROM / POR settings.
- */
- if (!initialized &&
- charge_port == CHARGE_PORT_NONE &&
- charge_get_percent() < 2)
- return -1;
-
switch (charge_port) {
case 0:
/* Don't charge from a source port */
@@ -395,7 +383,6 @@ int board_set_active_charge_port(int charge_port)
}
CPRINTS("New chg p%d", charge_port);
- initialized = 1;
return EC_SUCCESS;
}