]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: remove not needed sbus_dma_ops methods
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Dec 2018 11:28:35 +0000 (12:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 11 Dec 2018 13:45:23 +0000 (14:45 +0100)
commitcb424bae1fafb0a2f4b86d6e73c2663dd67d138b
tree8cac35eca49ef29cb6f744f1cc0c97723e6f7313
parentd1a65e0213ccfdf135b8f278843f4e386dbbd546
sparc: remove not needed sbus_dma_ops methods

No need to BUG_ON() on the cache maintainance ops - they are no-ops
by default, and there is nothing in the DMA API contract that prohibits
calling them on sbus devices (even if such drivers are unlikely to
ever appear).

Similarly a dma_supported method that always returns 0 is rather
pointless.  The only thing that indicates is that no one ever calls
the method on sbus devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c