[PATCH] Use pci_set_dma_mask() instead of direct assignment of DMA mask
authorTobias Klauser <tklauser@nuerscht.ch>
Mon, 16 May 2005 17:15:11 +0000 (19:15 +0200)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 28 Jun 2005 03:09:08 +0000 (23:09 -0400)
commitcac8c81a59bd3b6815871b3172e8ccf15a3431e0
tree7bc0d43eed52e71c11d25a0e8f91838457ec4a31
parent5f13e7ec5c1d98f4a63a3a79e66b2b121051f5ac
[PATCH] Use pci_set_dma_mask() instead of direct assignment of DMA mask

The amd8111e driver directly assigns the DMA mask to the dma_mask
member of the struct pci_dev instead of using pci_set_dma_mask(). This
makes the call to pci_dma_supported() redundant as pci_set_dma_mask()
does this check.

I do not own this device so I only compile-tested this patch.

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
drivers/net/amd8111e.c