[patch 5/7] drivers/net/tokenring/lanstreamer: Use the DMA_{64, 32}BIT_MASK constants

From: domen
Date: Sun Mar 06 2005 - 17:36:43 EST



Use the DMA_{64,32}BIT_MASK constants from dma-mapping.h
when calling pci_set_dma_mask() or pci_set_consistent_dma_mask()

Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
---


kj-domen/drivers/net/tokenring/lanstreamer.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/tokenring/lanstreamer.c~dma_mask-drivers_net_tokenring_lanstreamer drivers/net/tokenring/lanstreamer.c
--- kj/drivers/net/tokenring/lanstreamer.c~dma_mask-drivers_net_tokenring_lanstreamer 2005-03-05 16:12:01.000000000 +0100
+++ kj-domen/drivers/net/tokenring/lanstreamer.c 2005-03-05 16:12:02.000000000 +0100
@@ -258,7 +258,7 @@ static int __devinit streamer_init_one(s
#endif
#endif

- rc = pci_set_dma_mask(pdev, 0xFFFFFFFFULL);
+ rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
if (rc) {
printk(KERN_ERR "%s: No suitable PCI mapping available.\n",
dev->name);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html