net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions
[deliverable/linux.git] / drivers / net / amd8111e.c
index cb9c95d3ed0ab45854da0e1b1e8e0240c6c044d6..61ac671f97bffceae0a527babf46159b7a7a8813 100644 (file)
@@ -1346,7 +1346,7 @@ static int amd8111e_start_xmit(struct sk_buff *skb, struct net_device * dev)
                netif_stop_queue(dev);
        }
        spin_unlock_irqrestore(&lp->lock, flags);
-       return 0;
+       return NETDEV_TX_OK;
 }
 /*
 This function returns all the memory mapped registers of the device.
@@ -1871,7 +1871,7 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
        }
 
        /* Initialize DMA */
-       if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) < 0) {
+       if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) < 0) {
                printk(KERN_ERR "amd8111e: DMA not supported,"
                        "exiting.\n");
                goto err_free_reg;
This page took 0.02606 seconds and 5 git commands to generate.