aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2011-07-20 00:54:43 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-21 16:47:57 -0400
commit5526c0313777d4e5a6551de6b34705ac1fce92a7 (patch)
treed691d36ba6c74b038165bfb49e159ae216b75d48 /drivers/net/stmmac
parentffcf9b767293ebc3e59e639cd4ec0dff5ca39798 (diff)
stmmac: do vlan cleanup
- kill priv->vlgrp and stmmac_vlan_rx_register (used for nothing :)) Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r--drivers/net/stmmac/stmmac.h3
-rw-r--r--drivers/net/stmmac/stmmac_main.c17
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/stmmac/stmmac.h b/drivers/net/stmmac/stmmac.h
index 2b076b313622..4d8995df2f26 100644
--- a/drivers/net/stmmac/stmmac.h
+++ b/drivers/net/stmmac/stmmac.h
@@ -79,9 +79,6 @@ struct stmmac_priv {
79#ifdef CONFIG_STMMAC_TIMER 79#ifdef CONFIG_STMMAC_TIMER
80 struct stmmac_timer *tm; 80 struct stmmac_timer *tm;
81#endif 81#endif
82#ifdef STMMAC_VLAN_TAG_USED
83 struct vlan_group *vlgrp;
84#endif
85 struct plat_stmmacenet_data *plat; 82 struct plat_stmmacenet_data *plat;
86}; 83};
87 84
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c
index d37ebc80623a..1002b5517728 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/stmmac/stmmac_main.c
@@ -1421,20 +1421,6 @@ static int stmmac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1421 return ret; 1421 return ret;
1422} 1422}
1423 1423
1424#ifdef STMMAC_VLAN_TAG_USED
1425static void stmmac_vlan_rx_register(struct net_device *dev,
1426 struct vlan_group *grp)
1427{
1428 struct stmmac_priv *priv = netdev_priv(dev);
1429
1430 DBG(probe, INFO, "%s: Setting vlgrp to %p\n", dev->name, grp);
1431
1432 spin_lock(&priv->lock);
1433 priv->vlgrp = grp;
1434 spin_unlock(&priv->lock);
1435}
1436#endif
1437
1438static const struct net_device_ops stmmac_netdev_ops = { 1424static const struct net_device_ops stmmac_netdev_ops = {
1439 .ndo_open = stmmac_open, 1425 .ndo_open = stmmac_open,
1440 .ndo_start_xmit = stmmac_xmit, 1426 .ndo_start_xmit = stmmac_xmit,
@@ -1445,9 +1431,6 @@ static const struct net_device_ops stmmac_netdev_ops = {
1445 .ndo_tx_timeout = stmmac_tx_timeout, 1431 .ndo_tx_timeout = stmmac_tx_timeout,
1446 .ndo_do_ioctl = stmmac_ioctl, 1432 .ndo_do_ioctl = stmmac_ioctl,
1447 .ndo_set_config = stmmac_config, 1433 .ndo_set_config = stmmac_config,
1448#ifdef STMMAC_VLAN_TAG_USED
1449 .ndo_vlan_rx_register = stmmac_vlan_rx_register,
1450#endif
1451#ifdef CONFIG_NET_POLL_CONTROLLER 1434#ifdef CONFIG_NET_POLL_CONTROLLER
1452 .ndo_poll_controller = stmmac_poll_controller, 1435 .ndo_poll_controller = stmmac_poll_controller,
1453#endif 1436#endif