aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/slave.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 8030489d9cbe..6d1817449c36 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -11,6 +11,7 @@
11#include <linux/list.h> 11#include <linux/list.h>
12#include <linux/etherdevice.h> 12#include <linux/etherdevice.h>
13#include <linux/phy.h> 13#include <linux/phy.h>
14#include <linux/phy_fixed.h>
14#include <linux/of_net.h> 15#include <linux/of_net.h>
15#include <linux/of_mdio.h> 16#include <linux/of_mdio.h>
16#include "dsa_priv.h" 17#include "dsa_priv.h"
@@ -598,7 +599,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
598 netif_carrier_off(slave_dev); 599 netif_carrier_off(slave_dev);
599 600
600 if (p->phy != NULL) { 601 if (p->phy != NULL) {
601 if (ds->drv->get_phy_flags(ds, port)) 602 if (ds->drv->get_phy_flags)
602 p->phy->dev_flags |= ds->drv->get_phy_flags(ds, port); 603 p->phy->dev_flags |= ds->drv->get_phy_flags(ds, port);
603 604
604 phy_attach(slave_dev, dev_name(&p->phy->dev), 605 phy_attach(slave_dev, dev_name(&p->phy->dev),