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:
parent
44b9cde054
commit
0c365ac0ea
1 changed files with 0 additions and 6 deletions
|
@ -357,12 +357,6 @@ int can_mcan_init(const struct device *dev)
|
||||||
LOG_ERR("CAN transceiver not ready");
|
LOG_ERR("CAN transceiver not ready");
|
||||||
return -ENODEV;
|
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);
|
ret = can_exit_sleep_mode(can);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue