]> git.baikalelectronics.ru Git - kernel.git/commit
3c59x: convert to generic DMA API
authorChristoph Hellwig <hch@lst.de>
Sat, 12 May 2018 10:16:50 +0000 (12:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 00:22:58 +0000 (20:22 -0400)
commita51117e4d86871940689ecb49f8824160871fd59
treec2afeec6a9be04fea2b09c3fb60a4ed9e3ab66b3
parentf6249969231d93d43b00bfc1061217e63e1e9959
3c59x: convert to generic DMA API

This driver supports EISA devices in addition to PCI devices, and relied
on the legacy behavior of the pci_dma* shims to pass on a NULL pointer
to the DMA API, and the DMA API being able to handle that.  When the
NULL forwarding broke the EISA support got broken.  Fix this by converting
to the DMA API instead of the legacy PCI shims.

Fixes: 3816cf88 ("PCI: Remove NULL device handling from PCI DMA API")
Reported-by: tedheadster <tedheadster@gmail.com>
Tested-by: tedheadster <tedheadster@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c