parisc: return error code from .map_sg() ops
authorMartin Oliveira <martin.oliveira@eideticom.com>
Thu, 29 Jul 2021 20:15:34 +0000 (14:15 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:13:06 +0000 (17:13 +0200)
commit9a22f2f3435184df2882b8c6d6999e6ef022331b
tree6353486bd8144a7bfe02820e5ce3b1db73f606f9
parentba3a0482db879f33863348b81ed9770888d727a9
parisc: return error code from .map_sg() ops

The .map_sg() op now expects an error code instead of zero on failure.
Return -EINVAL if the ioc cannot be obtained.

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c