From c0cde2706b2bdd20340a4dbf454b5b0e1baec239 Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Tue, 17 Dec 2024 14:49:35 +0100 Subject: [PATCH] [nrf fromlist] include: drivers: nrf_clock_control: make nrf_clock inclusion stricter Some devices do not support nrf_clock HAL. Upstream PR #: 83115 Signed-off-by: Nikodem Kastelik --- include/zephyr/drivers/clock_control/nrf_clock_control.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zephyr/drivers/clock_control/nrf_clock_control.h b/include/zephyr/drivers/clock_control/nrf_clock_control.h index 8d9bcbe3441..f33ee5aa7c6 100644 --- a/include/zephyr/drivers/clock_control/nrf_clock_control.h +++ b/include/zephyr/drivers/clock_control/nrf_clock_control.h @@ -8,7 +8,7 @@ #define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_ #include -#ifdef NRF_CLOCK +#if defined(NRF_CLOCK) && !defined(NRF_LFRC) #include #endif #include