drivers: can: stm32: drop exit from sleep mode

Before entering initialization mode, we left sleep mode, then request
to leave again sleep mode before returning from can_stm32_init() is
useless.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
This commit is contained in:
Dario Binacchi 2021-07-16 19:05:18 +02:00 committed by Carles Cufí
commit f4e9ec5392

View file

@ -512,9 +512,6 @@ static int can_stm32_init(const struct device *dev)
return ret;
}
/* Leave sleep mode after reset*/
can->MCR &= ~CAN_MCR_SLEEP;
cfg->config_irq(can);
can->IER |= CAN_IER_TMEIE;
LOG_INF("Init of %s done", dev->name);