diff options
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index a851e9f14118..6d1817449c36 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -599,7 +599,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
599 | netif_carrier_off(slave_dev); | 599 | netif_carrier_off(slave_dev); |
600 | 600 | ||
601 | if (p->phy != NULL) { | 601 | if (p->phy != NULL) { |
602 | if (ds->drv->get_phy_flags(ds, port)) | 602 | if (ds->drv->get_phy_flags) |
603 | p->phy->dev_flags |= ds->drv->get_phy_flags(ds, port); | 603 | p->phy->dev_flags |= ds->drv->get_phy_flags(ds, port); |
604 | 604 | ||
605 | phy_attach(slave_dev, dev_name(&p->phy->dev), | 605 | phy_attach(slave_dev, dev_name(&p->phy->dev), |