From: Guy German Date: Mon, 15 Aug 2005 14:38:50 +0000 (-0700) Subject: [PATCH] IB/mthca: use generic function instead of arbel_ version in mthca_free_region() X-Git-Tag: MMI-PSA29.97-13-9~56197^2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f9f2dba729cee6ea10596ccb07447d467705b08;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] IB/mthca: use generic function instead of arbel_ version in mthca_free_region() Use the generic key_to_hw_index() function instead of the Arbel-specific version in mthca_free_region(). Signed-off-by: Guy German Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c b/drivers/infiniband/hw/mthca/mthca_mr.c index 0965e66061b7..1f97a44477f5 100644 --- a/drivers/infiniband/hw/mthca/mthca_mr.c +++ b/drivers/infiniband/hw/mthca/mthca_mr.c @@ -459,7 +459,7 @@ int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, static void mthca_free_region(struct mthca_dev *dev, u32 lkey) { mthca_table_put(dev, dev->mr_table.mpt_table, - arbel_key_to_hw_index(lkey)); + key_to_hw_index(dev, lkey)); mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); }