drivers: ptp_clock_nxp_enet: add module_dev to driver config
c8d8dce755 introduced a regression whereby driver config should hold
module device pointer, except it didn't.
This commit adds module_dev to the driver config.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
77f9f0e965
commit
95caf476f1
1 changed files with 1 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ static const struct ptp_clock_driver_api ptp_clock_nxp_enet_api = {
|
|||
\
|
||||
static const struct ptp_clock_nxp_enet_config \
|
||||
ptp_clock_nxp_enet_##n##_config = { \
|
||||
.module_dev = DEVICE_DT_GET(DT_INST_PARENT(n)), \
|
||||
.pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
|
||||
.port = DEVICE_DT_INST_GET(n), \
|
||||
.clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
|
||||
|
|
|
|||
Loading…
Reference in a new issue