]> 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)
commit9a5d9ff2c369538acab1c90bd6ada186846806ed
treec2afeec6a9be04fea2b09c3fb60a4ed9e3ab66b3
parentbb28275e03730bbf4d0c69ce59dbfbb1fdf603f9
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: fbdaf970 ("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