From 5a105a67afa4d56dae899e871671d5b20be71990 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 1 May 2020 20:37:25 +0300 Subject: [PATCH] drivers: eth: gmac: Convert to use k_timeout_t Convert the code to use k_timeout_t when applicable. Signed-off-by: Jukka Rissanen --- drivers/ethernet/eth_sam_gmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ethernet/eth_sam_gmac.c b/drivers/ethernet/eth_sam_gmac.c index d71b08e2ffb..cb89c2c6392 100644 --- a/drivers/ethernet/eth_sam_gmac.c +++ b/drivers/ethernet/eth_sam_gmac.c @@ -1863,7 +1863,7 @@ static void monitor_work_handler(struct k_work *work) finally: /* Submit delayed work */ k_delayed_work_submit(&dev_data->monitor_work, - CONFIG_ETH_SAM_GMAC_MONITOR_PERIOD); + K_MSEC(CONFIG_ETH_SAM_GMAC_MONITOR_PERIOD)); } static void eth0_iface_init(struct net_if *iface) @@ -1982,7 +1982,7 @@ static void eth0_iface_init(struct net_if *iface) /* Initialise monitor */ k_delayed_work_init(&dev_data->monitor_work, monitor_work_handler); k_delayed_work_submit(&dev_data->monitor_work, - CONFIG_ETH_SAM_GMAC_MONITOR_PERIOD); + K_MSEC(CONFIG_ETH_SAM_GMAC_MONITOR_PERIOD)); /* Do not start the interface until PHY link is up */ net_if_flag_set(iface, NET_IF_NO_AUTO_START);