Skip to content

Commit 6d3ed7f

Browse files
committed
[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 <[email protected]>
1 parent 9edbdaf commit 6d3ed7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/drivers/clock_control/nrf_clock_control.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NRF_CLOCK_CONTROL_H_
99

1010
#include <zephyr/device.h>
11-
#ifdef NRF_CLOCK
11+
#if defined(NRF_CLOCK) && !defined(NRF_LFRC)
1212
#include <hal/nrf_clock.h>
1313
#endif
1414
#include <zephyr/sys/onoff.h>

0 commit comments

Comments
 (0)