drivers: can: mcan: don't enabled trasceiver in init

With the move to start/stop functions the transceiver is not expected
to be enabled after driver initialization.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2022-09-15 12:27:44 +02:00 committed by Fabio Baltieri
commit 0c365ac0ea

View file

@ -357,12 +357,6 @@ int can_mcan_init(const struct device *dev)
LOG_ERR("CAN transceiver not ready");
return -ENODEV;
}
ret = can_transceiver_enable(cfg->phy);
if (ret != 0) {
LOG_ERR("failed to enable CAN transceiver (err %d)", ret);
return -EIO;
}
}
ret = can_exit_sleep_mode(can);