Commit b302308e authored by Andriy Gelman's avatar Andriy Gelman Committed by Anas Nashif
Browse files

drivers: eth_sam_gmac: Use CONFIG_PTP_CLOCK_INIT_PRIORITY to init ptp

Use dedicated Kconfig symbol to set init priority.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
parent 72b3c3ea
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/ethernet/eth_sam_gmac.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2494,6 +2494,6 @@ static int ptp_gmac_init(const struct device *port)

DEVICE_DEFINE(gmac_ptp_clock_0, PTP_CLOCK_NAME, ptp_gmac_init,
		NULL, &ptp_gmac_0_context, NULL, POST_KERNEL,
		CONFIG_APPLICATION_INIT_PRIORITY, &ptp_api);
		CONFIG_PTP_CLOCK_INIT_PRIORITY, &ptp_api);

#endif /* CONFIG_PTP_CLOCK_SAM_GMAC */