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:
parent
b1097df26e
commit
f4e9ec5392
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue