Skip to contentSkip to conversation

sn2 dma_mask fix

PATCH New Jes Sorensen 1 participant 1 message Sep 9, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sn2 dma_mask fix

Hi David,

Here's a pretty trivial one fixing the SN2 code to set the DMA mask correctly when using the dma_ API.

Cheers,
Jes

arch/ia64/sn/io/machvec/pci_dma.c renamed from arch/ia64/sn/io/machvec/pci_dma.c~ +1 -1
@@ -597,7 +597,7 @@
 	if (!sn_dma_supported(dev, dma_mask))
 		return 0;
 
-	dev->dma_mask = dma_mask;
+	*dev->dma_mask = dma_mask;
 	return 1;
 }
 EXPORT_SYMBOL(sn_dma_set_mask);