Skip to content

Commit e6235f4

Browse files
maass-hamburgcarlescufi
authored andcommitted
drivers: ethernet: eth_xmc4xxx: fix get_phy
This fixes the eth_xmc4xxx_get_phy function. Signed-off-by: Fin Maaß <[email protected]>
1 parent f39d8bb commit e6235f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_xmc4xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static const struct device *eth_xmc4xxx_get_phy(const struct device *dev)
639639
{
640640
const struct eth_xmc4xxx_config *dev_cfg = dev->config;
641641

642-
return config->phy_dev;
642+
return dev_cfg->phy_dev;
643643
}
644644

645645
static void eth_xmc4xxx_iface_init(struct net_if *iface)

0 commit comments

Comments
 (0)