Skip to content

Commit fbedd73

Browse files
committed
[nrf fromlist] devicetree: Fix MTD macro for subpartitions
The DT_MTD_FROM_FIXED_SUBPARTITION must go one level more than the DT_MTD_FROM_FIXED_PARTITION counterpart. Upstream PR #: 96808 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 68a48ec commit fbedd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/devicetree/fixed-partitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ extern "C" {
160160
*/
161161
#define DT_MTD_FROM_FIXED_SUBPARTITION(node_id) \
162162
COND_CODE_1(DT_NODE_EXISTS(DT_MEM_FROM_FIXED_SUBPARTITION(node_id)), \
163-
(DT_PARENT(DT_MEM_FROM_FIXED_SUBPARTITION(node_id))), (DT_GPARENT(node_id)))
163+
(DT_PARENT(DT_MEM_FROM_FIXED_SUBPARTITION(node_id))), (DT_GPARENT(DT_PARENT(node_id))))
164164

165165
/**
166166
* @brief Get the absolute address of a fixed subpartition

0 commit comments

Comments
 (0)