s390/pci_dma: simplify dma address calculation
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 17 Aug 2016 11:51:11 +0000 (13:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Sep 2016 11:42:31 +0000 (13:42 +0200)
commit8cb63b78791eef67ea95831c6ef5e6039c572b14
treee6f92315c264ace747e66ce950b5127ceeedfc89
parent3b13f1fea1be44f29be4150246624502a0227ebd
s390/pci_dma: simplify dma address calculation

Simplify the code we use to calculate dma addresses by putting
everything related in a dma_alloc_address function. Also provide
a dma_free_address counterpart.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_dma.c