diff options
Diffstat (limited to 'drivers/net/dsa/mv88e6171.c')
-rw-r--r-- | drivers/net/dsa/mv88e6171.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c index 03a70069a8c6..6365e30138af 100644 --- a/drivers/net/dsa/mv88e6171.c +++ b/drivers/net/dsa/mv88e6171.c | |||
@@ -17,10 +17,14 @@ | |||
17 | #include <net/dsa.h> | 17 | #include <net/dsa.h> |
18 | #include "mv88e6xxx.h" | 18 | #include "mv88e6xxx.h" |
19 | 19 | ||
20 | static char *mv88e6171_probe(struct mii_bus *bus, int sw_addr) | 20 | static char *mv88e6171_probe(struct device *host_dev, int sw_addr) |
21 | { | 21 | { |
22 | struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev); | ||
22 | int ret; | 23 | int ret; |
23 | 24 | ||
25 | if (bus == NULL) | ||
26 | return NULL; | ||
27 | |||
24 | ret = __mv88e6xxx_reg_read(bus, sw_addr, REG_PORT(0), 0x03); | 28 | ret = __mv88e6xxx_reg_read(bus, sw_addr, REG_PORT(0), 0x03); |
25 | if (ret >= 0) { | 29 | if (ret >= 0) { |
26 | if ((ret & 0xfff0) == 0x1710) | 30 | if ((ret & 0xfff0) == 0x1710) |