Skip to content

Commit 100098f

Browse files
committed
[nrf fromlist] soc: nordic: nrf54h: Add DT_NODE_EXISTS check
Add `DT_NODE_EXISTS` check to ensure cpurad partition nodes exist before referencing their addresses. This prevents build errors when these partitions are not defined in the devicetree. Upstream PR #: 93815 Signed-off-by: Triveni Danda <[email protected]>
1 parent 2b9c51b commit 100098f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/nordic/nrf54h/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void soc_late_init_hook(void)
211211
DT_REG_ADDR(DT_NODELABEL(cpurad_slot0_partition)) +
212212
CONFIG_ROM_START_OFFSET);
213213
}
214-
#else
214+
#elif DT_NODE_EXISTS(DT_NODELABEL(cpurad_slot0_partition))
215215
radiocore_address =
216216
(void *)(DT_REG_ADDR(DT_GPARENT(DT_NODELABEL(cpurad_slot0_partition))) +
217217
DT_REG_ADDR(DT_NODELABEL(cpurad_slot0_partition)) +

0 commit comments

Comments
 (0)