]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/net/forcedeth.c
Merge branch 'drm-fbdev-cleanup' into drm-core-next
[mv-sheeva.git] / drivers / net / forcedeth.c
index ca05e5662029d8a4566a2d95fbcde3a55ba27ce3..5c98f7c22425ee0c0209205219ea53075c9577cc 100644 (file)
@@ -59,6 +59,7 @@
 #include <linux/init.h>
 #include <linux/if_vlan.h>
 #include <linux/dma-mapping.h>
+#include <linux/slab.h>
 
 #include <asm/irq.h>
 #include <asm/io.h>
@@ -5898,7 +5899,7 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
        /* Limit the number of tx's outstanding for hw bug */
        if (id->driver_data & DEV_NEED_TX_LIMIT) {
                np->tx_limit = 1;
-               if ((id->driver_data & DEV_NEED_TX_LIMIT2) &&
+               if (((id->driver_data & DEV_NEED_TX_LIMIT2) == DEV_NEED_TX_LIMIT2) &&
                    pci_dev->revision >= 0xA2)
                        np->tx_limit = 0;
        }