diff --git a/drivers/net/can/mttcan/native/m_ttcan_linux.c b/drivers/net/can/mttcan/native/m_ttcan_linux.c index dbb5b806..6a403dc1 100644 --- a/drivers/net/can/mttcan/native/m_ttcan_linux.c +++ b/drivers/net/can/mttcan/native/m_ttcan_linux.c @@ -617,7 +617,7 @@ static void mttcan_tx_complete(struct net_device *dev) while (completed_tx) { msg_no = ffs(completed_tx) - 1; can_get_echo_skb(dev, msg_no, NULL); -#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 0) can_led_event(dev, CAN_LED_EVENT_TX); #endif clear_bit(msg_no, &ttcan->tx_object); @@ -1309,7 +1309,7 @@ static int mttcan_open(struct net_device *dev) } napi_enable(&priv->napi); -#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 0) can_led_event(dev, CAN_LED_EVENT_OPEN); #endif @@ -1338,7 +1338,7 @@ static int mttcan_close(struct net_device *dev) mttcan_power_down(dev); mttcan_pm_runtime_put_sync(priv); -#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 0) can_led_event(dev, CAN_LED_EVENT_STOP); #endif return 0; @@ -1539,7 +1539,7 @@ static int register_mttcan_dev(struct net_device *dev) dev->netdev_ops = &mttcan_netdev_ops; err = register_candev(dev); -#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 0) if (!err) devm_can_led_init(dev); #endif