diff options
Diffstat (limited to 'driver')
-rw-r--r-- | driver/accel_kionix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accel_kionix.c b/driver/accel_kionix.c index 06dc8564b8..b3a1cde3ab 100644 --- a/driver/accel_kionix.c +++ b/driver/accel_kionix.c @@ -521,7 +521,7 @@ static int init(const struct motion_sensor_t *s) msleep(1); /* Read WHO_AM_I to be sure the device has booted */ ret = raw_read8(s->port, s->addr, reg, &val); - if (ret == EC_SUCCESS && val == KIONIX_WHO_AM_I_VAL(V(s))) + if (ret == EC_SUCCESS) break; /* Check for timeout. */ |