aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-04-21 12:09:19 -0400
committerDavid S. Miller <davem@davemloft.net>2014-04-21 14:58:48 -0400
commit5672a8fd286ced9d15ed81f241486e957c4e332b (patch)
tree48d99ecbd2e2efcef244fc889fcc9fc754469122 /drivers/net/ethernet/ethoc.c
parent5b54dac856cb5bd6f33f4159012773e4a33704f7 (diff)
net: ethoc: remove ethoc_config
ethoc_config() returns -ENOSYS and does not implement anything useful, let's remove it such that net/core/dev_ioctl.c::dev_ifsioc can return something meaningful like -EOPNOTSUPP. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ethoc.c')
-rw-r--r--drivers/net/ethernet/ethoc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index 8b70ca7e342b..f3658bdb64cc 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -769,11 +769,6 @@ static int ethoc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
769 return phy_mii_ioctl(phy, ifr, cmd); 769 return phy_mii_ioctl(phy, ifr, cmd);
770} 770}
771 771
772static int ethoc_config(struct net_device *dev, struct ifmap *map)
773{
774 return -ENOSYS;
775}
776
777static void ethoc_do_set_mac_address(struct net_device *dev) 772static void ethoc_do_set_mac_address(struct net_device *dev)
778{ 773{
779 struct ethoc *priv = netdev_priv(dev); 774 struct ethoc *priv = netdev_priv(dev);
@@ -995,7 +990,6 @@ static const struct net_device_ops ethoc_netdev_ops = {
995 .ndo_open = ethoc_open, 990 .ndo_open = ethoc_open,
996 .ndo_stop = ethoc_stop, 991 .ndo_stop = ethoc_stop,
997 .ndo_do_ioctl = ethoc_ioctl, 992 .ndo_do_ioctl = ethoc_ioctl,
998 .ndo_set_config = ethoc_config,
999 .ndo_set_mac_address = ethoc_set_mac_address, 993 .ndo_set_mac_address = ethoc_set_mac_address,
1000 .ndo_set_rx_mode = ethoc_set_multicast_list, 994 .ndo_set_rx_mode = ethoc_set_multicast_list,
1001 .ndo_change_mtu = ethoc_change_mtu, 995 .ndo_change_mtu = ethoc_change_mtu,