Skip to content

Commit d7a795b

Browse files
committed
drivers: ethernet: sensry: Fix phy handle instance
Fix ethernet PHY handle in case of multiple instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 2bc15b4 commit d7a795b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_sensry_sy1xx_mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ const struct ethernet_api sy1xx_mac_driver_api = {
571571
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
572572
.promiscuous_mode = DT_INST_PROP_OR(n, promiscuous_mode, false), \
573573
.use_zephyr_random_mac = DT_INST_PROP(n, zephyr_random_mac_address), \
574-
.phy_dev = DEVICE_DT_GET(DT_INST_PHANDLE(0, phy_handle))}; \
574+
.phy_dev = DEVICE_DT_GET(DT_INST_PHANDLE(n, phy_handle))}; \
575575
\
576576
static struct sy1xx_mac_dma_buffers __attribute__((section(".udma_access"))) \
577577
__aligned(4) sy1xx_mac_dma_buffers_##n; \

0 commit comments

Comments
 (0)