diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-12-20 12:57:23 -0500 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-12-21 18:42:55 -0500 |
commit | 4954936e25cb8ce99a96cac9dd9417d7b639867a (patch) | |
tree | 515bb79a5163e97de252103f325fde4f2568ef73 /drivers/net/arm | |
parent | 2098c18d6cf65358dd1620154bdedbc8c8d36f44 (diff) |
IXP4xx: Add PHYLIB MII ioctl to the Ethernet driver.
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/ixp4xx_eth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index db44ebbf45c5..1bbb7b8cb0da 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -788,9 +788,11 @@ static void eth_set_mcast_list(struct net_device *dev) | |||
788 | 788 | ||
789 | static int eth_ioctl(struct net_device *dev, struct ifreq *req, int cmd) | 789 | static int eth_ioctl(struct net_device *dev, struct ifreq *req, int cmd) |
790 | { | 790 | { |
791 | struct port *port = netdev_priv(dev); | ||
792 | |||
791 | if (!netif_running(dev)) | 793 | if (!netif_running(dev)) |
792 | return -EINVAL; | 794 | return -EINVAL; |
793 | return -EINVAL; | 795 | return phy_mii_ioctl(port->phydev, if_mii(req), cmd); |
794 | } | 796 | } |
795 | 797 | ||
796 | 798 | ||