--- 2cbf8a6506c7e8fad72736773efa238367bf03f5 +++ abeecd27b484fe2345f3c01dda91b7f74f079cd6 @@ -238,6 +238,8 @@ static int ams_i2c_probe(struct i2c_clie static int ams_i2c_remove(struct i2c_client *client) { if (ams_info.has_device) { + ams_sensor_detach(); + /* Disable interrupts */ ams_i2c_set_irq(AMS_IRQ_ALL, 0);