nrf_drv_twi: remove redundant nrf_drv_disable call in nrf_drv_twi_uninit

i2c_api implementation for NRF52 does a disable() followed by uninit().
The uniinit() implementation in NRF drivers layer makes another call to
disable. This throws off the state of the I2C instance leading to an
assert. Since the disable is only invoked from the I2C API layer for
Nordic, remove this redundant call.

Signed-off-by: Naveen Kaje <Naveen.Kaje@arm.com>
pull/7645/head
Naveen Kaje 2018-07-27 16:32:17 -05:00
parent 8292affb53
commit db91e7ed02
1 changed files with 0 additions and 1 deletions

View File

@ -345,7 +345,6 @@ void nrf_drv_twi_uninit(nrf_drv_twi_t const * p_instance)
nrf_drv_common_irq_disable(nrf_drv_get_IRQn((void *)p_instance->reg.p_twi));
)
}
nrf_drv_twi_disable(p_instance);
#if NRF_MODULE_ENABLED(PERIPHERAL_RESOURCE_SHARING)
nrf_drv_common_per_res_release(p_instance->reg.p_regs);