drivers: i2c: stm32: Fix for i2c PM

Remove unwanted "pm_device_runtime_get" lock which makes i2c power
management working incorrectly.

Fixes: #62790
Signed-off-by: Petr Hlineny <development@hlineny.cz>
This commit is contained in:
Petr Hlineny 2023-09-21 12:22:07 +02:00 committed by Carles Cufí
commit b2fb3d49bf

View file

@ -146,11 +146,6 @@ static int i2c_stm32_transfer(const struct device *dev, struct i2c_msg *msg,
return ret;
}
ret = pm_device_runtime_get(dev);
if (ret < 0) {
return ret;
}
/* Send out messages */
k_sem_take(&data->bus_mutex, K_FOREVER);