summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/lan9303_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dsa/lan9303_i2c.c')
-rw-r--r--drivers/net/dsa/lan9303_i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c
index ab3ce0da5071..24ec20f7f444 100644
--- a/drivers/net/dsa/lan9303_i2c.c
+++ b/drivers/net/dsa/lan9303_i2c.c
@@ -63,6 +63,8 @@ static int lan9303_i2c_probe(struct i2c_client *client,
i2c_set_clientdata(client, sw_dev);
sw_dev->chip.dev = &client->dev;
+ sw_dev->chip.ops = &lan9303_indirect_phy_ops;
+
ret = lan9303_probe(&sw_dev->chip, client->dev.of_node);
if (ret != 0)
return ret;