diff options
Diffstat (limited to 'drivers/net/ethernet/via')
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/via/via-velocity.c | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 5587ecdf32e3..bcdbdc72b558 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -488,8 +488,8 @@ static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | |||
488 | static const struct ethtool_ops netdev_ethtool_ops; | 488 | static const struct ethtool_ops netdev_ethtool_ops; |
489 | static int rhine_close(struct net_device *dev); | 489 | static int rhine_close(struct net_device *dev); |
490 | static void rhine_shutdown (struct pci_dev *pdev); | 490 | static void rhine_shutdown (struct pci_dev *pdev); |
491 | static void rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid); | 491 | static int rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid); |
492 | static void rhine_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid); | 492 | static int rhine_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid); |
493 | static void rhine_set_cam(void __iomem *ioaddr, int idx, u8 *addr); | 493 | static void rhine_set_cam(void __iomem *ioaddr, int idx, u8 *addr); |
494 | static void rhine_set_vlan_cam(void __iomem *ioaddr, int idx, u8 *addr); | 494 | static void rhine_set_vlan_cam(void __iomem *ioaddr, int idx, u8 *addr); |
495 | static void rhine_set_cam_mask(void __iomem *ioaddr, u32 mask); | 495 | static void rhine_set_cam_mask(void __iomem *ioaddr, u32 mask); |
@@ -1261,7 +1261,7 @@ static void rhine_update_vcam(struct net_device *dev) | |||
1261 | rhine_set_vlan_cam_mask(ioaddr, vCAMmask); | 1261 | rhine_set_vlan_cam_mask(ioaddr, vCAMmask); |
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | static void rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 1264 | static int rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) |
1265 | { | 1265 | { |
1266 | struct rhine_private *rp = netdev_priv(dev); | 1266 | struct rhine_private *rp = netdev_priv(dev); |
1267 | 1267 | ||
@@ -1269,9 +1269,10 @@ static void rhine_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
1269 | set_bit(vid, rp->active_vlans); | 1269 | set_bit(vid, rp->active_vlans); |
1270 | rhine_update_vcam(dev); | 1270 | rhine_update_vcam(dev); |
1271 | spin_unlock_irq(&rp->lock); | 1271 | spin_unlock_irq(&rp->lock); |
1272 | return 0; | ||
1272 | } | 1273 | } |
1273 | 1274 | ||
1274 | static void rhine_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 1275 | static int rhine_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) |
1275 | { | 1276 | { |
1276 | struct rhine_private *rp = netdev_priv(dev); | 1277 | struct rhine_private *rp = netdev_priv(dev); |
1277 | 1278 | ||
@@ -1279,6 +1280,7 @@ static void rhine_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | |||
1279 | clear_bit(vid, rp->active_vlans); | 1280 | clear_bit(vid, rp->active_vlans); |
1280 | rhine_update_vcam(dev); | 1281 | rhine_update_vcam(dev); |
1281 | spin_unlock_irq(&rp->lock); | 1282 | spin_unlock_irq(&rp->lock); |
1283 | return 0; | ||
1282 | } | 1284 | } |
1283 | 1285 | ||
1284 | static void init_registers(struct net_device *dev) | 1286 | static void init_registers(struct net_device *dev) |
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c index 59bb5fd56afe..4128d6b8cc28 100644 --- a/drivers/net/ethernet/via/via-velocity.c +++ b/drivers/net/ethernet/via/via-velocity.c | |||
@@ -522,7 +522,7 @@ static void velocity_init_cam_filter(struct velocity_info *vptr) | |||
522 | mac_set_vlan_cam_mask(regs, vptr->vCAMmask); | 522 | mac_set_vlan_cam_mask(regs, vptr->vCAMmask); |
523 | } | 523 | } |
524 | 524 | ||
525 | static void velocity_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | 525 | static int velocity_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) |
526 | { | 526 | { |
527 | struct velocity_info *vptr = netdev_priv(dev); | 527 | struct velocity_info *vptr = netdev_priv(dev); |
528 | 528 | ||
@@ -530,9 +530,10 @@ static void velocity_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) | |||
530 | set_bit(vid, vptr->active_vlans); | 530 | set_bit(vid, vptr->active_vlans); |
531 | velocity_init_cam_filter(vptr); | 531 | velocity_init_cam_filter(vptr); |
532 | spin_unlock_irq(&vptr->lock); | 532 | spin_unlock_irq(&vptr->lock); |
533 | return 0; | ||
533 | } | 534 | } |
534 | 535 | ||
535 | static void velocity_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) | 536 | static int velocity_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) |
536 | { | 537 | { |
537 | struct velocity_info *vptr = netdev_priv(dev); | 538 | struct velocity_info *vptr = netdev_priv(dev); |
538 | 539 | ||
@@ -540,6 +541,7 @@ static void velocity_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid | |||
540 | clear_bit(vid, vptr->active_vlans); | 541 | clear_bit(vid, vptr->active_vlans); |
541 | velocity_init_cam_filter(vptr); | 542 | velocity_init_cam_filter(vptr); |
542 | spin_unlock_irq(&vptr->lock); | 543 | spin_unlock_irq(&vptr->lock); |
544 | return 0; | ||
543 | } | 545 | } |
544 | 546 | ||
545 | static void velocity_init_rx_ring_indexes(struct velocity_info *vptr) | 547 | static void velocity_init_rx_ring_indexes(struct velocity_info *vptr) |