summaryrefslogtreecommitdiff
path: root/driver/accel_kionix.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/accel_kionix.c')
-rw-r--r--driver/accel_kionix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accel_kionix.c b/driver/accel_kionix.c
index de03120404..7323abf6f0 100644
--- a/driver/accel_kionix.c
+++ b/driver/accel_kionix.c
@@ -458,7 +458,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)
+ if (ret == EC_SUCCESS && val == KIONIX_WHO_AM_I_VAL(V(s)))
break;
/* Check for timeout. */