Skip to content

Commit 95caf47

Browse files
kartbennashif
authored andcommitted
drivers: ptp_clock_nxp_enet: add module_dev to driver config
c8d8dce 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é <[email protected]>
1 parent 77f9f0e commit 95caf47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ptp_clock/ptp_clock_nxp_enet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ static const struct ptp_clock_driver_api ptp_clock_nxp_enet_api = {
247247
\
248248
static const struct ptp_clock_nxp_enet_config \
249249
ptp_clock_nxp_enet_##n##_config = { \
250+
.module_dev = DEVICE_DT_GET(DT_INST_PARENT(n)), \
250251
.pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
251252
.port = DEVICE_DT_INST_GET(n), \
252253
.clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \

0 commit comments

Comments
 (0)