Skip to content

Commit 767c21a

Browse files
nordic-krchjhedberg
authored andcommitted
drivers: power_domain: nrf_gpio_pad_group: Fix DT macro
DT_PROP_OR instead of DT_INST_PROP_OR was used and property from device tree was never used. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 5d05c4b commit 767c21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power_domain/power_domain_nrf_gpio_pad_group.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static int nrf_port_retain_driver_init(const struct device *dev)
6363
#define NRF_GPIO_PAD_GROUP_DEFINE(inst) \
6464
static const struct nrf_port_retain_config _CONCAT(config, inst) = { \
6565
.regs = (NRF_GPIO_Type *)DT_REG_ADDR(DT_INST_PARENT(inst)), \
66-
.retain_mask = DT_PROP_OR(inst, retain_mask, UINT32_MAX), \
66+
.retain_mask = DT_INST_PROP_OR(inst, retain_mask, UINT32_MAX), \
6767
}; \
6868
\
6969
PM_DEVICE_DT_INST_DEFINE(inst, nrf_port_retain_driver_pm_action); \

0 commit comments

Comments
 (0)