diff options
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index d36aedde8cb9..d1d9d3cf9139 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c | |||
@@ -3187,6 +3187,7 @@ static int mv88e6xxx_set_addr(struct dsa_switch *ds, u8 *addr) | |||
3187 | return err; | 3187 | return err; |
3188 | } | 3188 | } |
3189 | 3189 | ||
3190 | #ifdef CONFIG_NET_DSA_HWMON | ||
3190 | static int mv88e6xxx_mdio_page_read(struct dsa_switch *ds, int port, int page, | 3191 | static int mv88e6xxx_mdio_page_read(struct dsa_switch *ds, int port, int page, |
3191 | int reg) | 3192 | int reg) |
3192 | { | 3193 | { |
@@ -3212,6 +3213,7 @@ static int mv88e6xxx_mdio_page_write(struct dsa_switch *ds, int port, int page, | |||
3212 | 3213 | ||
3213 | return ret; | 3214 | return ret; |
3214 | } | 3215 | } |
3216 | #endif | ||
3215 | 3217 | ||
3216 | static int mv88e6xxx_port_to_mdio_addr(struct mv88e6xxx_chip *chip, int port) | 3218 | static int mv88e6xxx_port_to_mdio_addr(struct mv88e6xxx_chip *chip, int port) |
3217 | { | 3219 | { |