Skip to content

Commit 9b7d73c

Browse files
TonyHan11dkalowsk
authored andcommitted
drivers: ethernet: ksz8081: fix compiling error about missing variable
The missing variable "config" in phy_mc_ksz8081_cfg_link() maybe used by the macro "USING_INTERRUPT_GPIO", add the variable to avoid compiling errors. fixes: zephyrproject-rtos#95492 Signed-off-by: Tony Han <tony.han@microchip.com>
1 parent 9320bd2 commit 9b7d73c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/ethernet/phy/phy_microchip_ksz8081.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ static int phy_mc_ksz8081_reset(const struct device *dev)
474474
static int phy_mc_ksz8081_cfg_link(const struct device *dev, enum phy_link_speed speeds,
475475
enum phy_cfg_link_flag flags)
476476
{
477+
__maybe_unused const struct mc_ksz8081_config *config = dev->config;
477478
struct mc_ksz8081_data *data = dev->data;
478479
int ret;
479480

0 commit comments

Comments
 (0)