]> git.hungrycats.org Git - linux/commitdiff
[netdrvr 8139cp,r8169] fix dma_addr_t sizeof test
authorJeff Garzik <jgarzik@pobox.com>
Mon, 30 Aug 2004 23:15:41 +0000 (19:15 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 30 Aug 2004 23:15:41 +0000 (19:15 -0400)
drivers/net/8139cp.c
drivers/net/r8169.c

index 62dd139511711ac7c6f5c4b199890cec964a4178..1b18b3acad44686e973450fd1180e9199ef0982e 100644 (file)
@@ -1698,7 +1698,7 @@ static int cp_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
        }
 
        /* Configure DMA attributes. */
-       if ((sizeof(dma_addr_t) > 32) &&
+       if ((sizeof(dma_addr_t) > 4) &&
            !pci_set_consistent_dma_mask(pdev, 0xffffffffffffffffULL) &&
            !pci_set_dma_mask(pdev, 0xffffffffffffffffULL)) {
                pci_using_dac = 1;
index 0b3bb03d85019bd792f33f26c4a682c32194ec93..18f1466de51b4bb2d2a56beb35f471a4655f6dd3 100644 (file)
@@ -983,7 +983,7 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
 
        tp->cp_cmd = PCIMulRW | RxChkSum;
 
-       if ((sizeof(dma_addr_t) > 32) &&
+       if ((sizeof(dma_addr_t) > 4) &&
            !pci_set_dma_mask(pdev, DMA_64BIT_MASK))
                tp->cp_cmd |= PCIDAC;
        else {