]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/atlx/atl2.c
netdev: convert bulk of drivers to netdev_tx_t
[net-next-2.6.git] / drivers / net / atlx / atl2.c
index c734b1983ec14667bc2debd4d5eec05b4f66369d..d0bcb572d51ec12572b48cbc0a0fc574d4cea22d 100644 (file)
@@ -821,7 +821,8 @@ static inline int TxdFreeBytes(struct atl2_adapter *adapter)
                (int) (txd_read_ptr - adapter->txd_write_ptr - 1);
 }
 
-static int atl2_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
+static netdev_tx_t atl2_xmit_frame(struct sk_buff *skb,
+                                        struct net_device *netdev)
 {
        struct atl2_adapter *adapter = netdev_priv(netdev);
        struct tx_pkt_header *txph;
@@ -2071,7 +2072,7 @@ static int atl2_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
        if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE))
                return -EOPNOTSUPP;
 
-       if (wol->wolopts & (WAKE_MCAST|WAKE_BCAST|WAKE_MCAST))
+       if (wol->wolopts & (WAKE_UCAST | WAKE_BCAST | WAKE_MCAST))
                return -EOPNOTSUPP;
 
        /* these settings will always override what we currently have */