From bfbe1f85ad7c679d4951a02c832b4d2e62fcffc3 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 14 Jul 2022 12:54:38 -0500 Subject: [PATCH] tests: uart_mix_fifo_poll: Convert to use DEVICE_DT_GET Move to use DEVICE_DT_GET instead of device_get_binding as we work on phasing out use of DTS 'label' property. Signed-off-by: Kumar Gala --- tests/drivers/uart/uart_mix_fifo_poll/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/drivers/uart/uart_mix_fifo_poll/src/main.c b/tests/drivers/uart/uart_mix_fifo_poll/src/main.c index 781da8fc06e..a3867894149 100644 --- a/tests/drivers/uart/uart_mix_fifo_poll/src/main.c +++ b/tests/drivers/uart/uart_mix_fifo_poll/src/main.c @@ -147,8 +147,8 @@ static void init_test(void) /* Setup counter which will periodically enable/disable UART RX, * Disabling RX should lead to flow control being activated. */ - counter_dev = device_get_binding("TIMER_0"); - zassert_true(counter_dev != NULL, NULL); + counter_dev = DEVICE_DT_GET(DT_NODELABEL(timer0)); + zassert_true(device_is_ready(counter_dev), NULL); top_cfg.ticks = counter_us_to_ticks(counter_dev, 1000);