diff options
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 289a6aa4b51c..cb436a05c9a8 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #include "dsa_priv.h" | 23 | #include "dsa_priv.h" |
24 | 24 | ||
25 | static bool dsa_slave_dev_check(struct net_device *dev); | 25 | static bool dsa_slave_dev_check(const struct net_device *dev); |
26 | 26 | ||
27 | /* slave mii_bus handling ***************************************************/ | 27 | /* slave mii_bus handling ***************************************************/ |
28 | static int dsa_slave_phy_read(struct mii_bus *bus, int addr, int reg) | 28 | static int dsa_slave_phy_read(struct mii_bus *bus, int addr, int reg) |
@@ -1408,7 +1408,7 @@ void dsa_slave_destroy(struct net_device *slave_dev) | |||
1408 | free_netdev(slave_dev); | 1408 | free_netdev(slave_dev); |
1409 | } | 1409 | } |
1410 | 1410 | ||
1411 | static bool dsa_slave_dev_check(struct net_device *dev) | 1411 | static bool dsa_slave_dev_check(const struct net_device *dev) |
1412 | { | 1412 | { |
1413 | return dev->netdev_ops == &dsa_slave_netdev_ops; | 1413 | return dev->netdev_ops == &dsa_slave_netdev_ops; |
1414 | } | 1414 | } |