Skip to content

Commit a9beebd

Browse files
committed
drivers: ethernet: phy: vsc8541: fixed build warnings
Fixed some build warnings in the driver from previous changes by removing an unused variable and hooking up the cfg_link function. Signed-off-by: Robert Hancock <robert.hancock@calian.com>
1 parent 4e2e499 commit a9beebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/phy/phy_microchip_vsc8541.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ static int phy_mc_vsc8541_cfg_link(const struct device *dev, enum phy_link_speed
284284
static int phy_mc_vsc8541_init(const struct device *dev)
285285
{
286286
struct mc_vsc8541_data *data = dev->data;
287-
struct mc_vsc8541_config *cfg = dev->config;
288287
int ret;
289288

290289
data->active_page = -1;
@@ -489,6 +488,7 @@ static int phy_mc_vsc8541_write(const struct device *dev, uint16_t reg_addr, uin
489488

490489
static DEVICE_API(ethphy, mc_vsc8541_phy_api) = {
491490
.get_link = phy_mc_vsc8541_get_link,
491+
.cfg_link = phy_mc_vsc8541_cfg_link,
492492
.link_cb_set = phy_mc_vsc8541_link_cb_set,
493493
.read = phy_mc_vsc8541_read,
494494
.write = phy_mc_vsc8541_write,

0 commit comments

Comments
 (0)