Use the DMA_32BIT_MASK constant from dma-mapping.h when calling pci_set_dma_mask() or pci_set_consistent_dma_mask() These patches include dma-mapping.h explicitly because it caused errors on some architectures otherwise. See http://marc.theaimsgroup.com/?t=108001993000001&r=1&w=2 for details Signed-off-by: Tobias Klauser Signed-off-by: Domen Puncer --- kj-domen/drivers/ieee1394/pcilynx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/ieee1394/pcilynx.c~dma_mask-drivers_ieee1394_pcilynx drivers/ieee1394/pcilynx.c --- kj/drivers/ieee1394/pcilynx.c~dma_mask-drivers_ieee1394_pcilynx 2005-04-05 12:57:33.000000000 +0200 +++ kj-domen/drivers/ieee1394/pcilynx.c 2005-04-05 12:57:33.000000000 +0200 @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -1524,7 +1525,7 @@ static int __devinit add_card(struct pci error = -ENXIO; - if (pci_set_dma_mask(dev, 0xffffffff)) + if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) FAIL("DMA address limits not supported for PCILynx hardware"); if (pci_enable_device(dev)) FAIL("failed to enable PCILynx hardware"); _