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)
commit55c82617c3e82210b7471e9334e8fc5df6a9961f
treec2afeec6a9be04fea2b09c3fb60a4ed9e3ab66b3
parentb84bbaf7a6c8cca24f8acf25a2c8e46913a947ba
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: 4167b2ad ("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