DMAENGINE: COH 901 318 configure channel direction
[safe/jmp/linux-2.6] / net / rose / rose_dev.c
index 7dcf256..424b893 100644 (file)
@@ -131,17 +131,17 @@ static int rose_close(struct net_device *dev)
        return 0;
 }
 
-static int rose_xmit(struct sk_buff *skb, struct net_device *dev)
+static netdev_tx_t rose_xmit(struct sk_buff *skb, struct net_device *dev)
 {
        struct net_device_stats *stats = &dev->stats;
 
        if (!netif_running(dev)) {
                printk(KERN_ERR "ROSE: rose_xmit - called when iface is down\n");
-               return 1;
+               return NETDEV_TX_BUSY;
        }
        dev_kfree_skb(skb);
        stats->tx_errors++;
-       return 0;
+       return NETDEV_TX_OK;
 }
 
 static const struct header_ops rose_header_ops = {