OSDN Git Service

IB/ipath: Remove ib_sg_dma_address() and ib_sg_dma_len() overloads
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 28 Mar 2014 19:04:43 +0000 (15:04 -0400)
committerRoland Dreier <roland@purestorage.com>
Tue, 1 Apr 2014 18:16:31 +0000 (11:16 -0700)
commit49c5c27e05c915f0da4c0e756da313cf09ae2c55
tree0a000d6a5c89c42990b9cf4a3fb02fc6bdead8fe
parent446bf432a9b084d9f3471eca309cc53fa434ccc7
IB/ipath: Remove ib_sg_dma_address() and ib_sg_dma_len() overloads

The removal of these methods is compensated for by code changes to
.map_sg to insure that the vanilla sg_dma_address() and sg_dma_len()
will do the same thing as the equivalent former ib_sg_dma_address()
and ib_sg_dma_len() calls into the drivers.

The introduction of this patch required that the struct
ipath_dma_mapping_ops be converted to a C99 initializer.

Suggested-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ipath/ipath_dma.c