summaryrefslogtreecommitdiff
path: root/common/i2c_master.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/i2c_master.c')
-rw-r--r--common/i2c_master.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/i2c_master.c b/common/i2c_master.c
index 340c20bb7e..399303cc17 100644
--- a/common/i2c_master.c
+++ b/common/i2c_master.c
@@ -5,7 +5,6 @@
/* I2C cross-platform code for Chrome EC */
-#include "battery.h"
#include "clock.h"
#include "console.h"
#include "crc8.h"
@@ -959,14 +958,6 @@ static enum ec_status i2c_command_passthru(struct host_cmd_handler_args *args)
int ret, i;
int port_is_locked = 0;
-#ifdef CONFIG_BATTERY_CUT_OFF
- /*
- * Some batteries would wake up after cut-off if we talk to it.
- */
- if (battery_is_cut_off())
- return EC_RES_ACCESS_DENIED;
-#endif
-
i2c_port = get_i2c_port(params->port);
if (!i2c_port)
return EC_RES_INVALID_PARAM;