drivers: can: mcan: fix compiler warning
Fix compiler warning with CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y.
Fixes: 4e41d89c7b
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
4430aa22ca
commit
e0aaaea473
4 changed files with 8 additions and 0 deletions
|
@ -108,12 +108,14 @@ static int mcux_mcan_get_max_bitrate(const struct device *dev, uint32_t *max_bit
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_CAN_AUTO_BUS_OFF_RECOVERY
|
||||
static int mcux_mcan_recover(const struct device *dev, k_timeout_t timeout)
|
||||
{
|
||||
const struct mcux_mcan_config *config = dev->config;
|
||||
|
||||
return can_mcan_recover(&config->mcan, timeout);
|
||||
}
|
||||
#endif /* CONFIG_CAN_AUTO_BUS_OFF_RECOVERY */
|
||||
|
||||
static void mcux_mcan_line_0_isr(const struct device *dev)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue