[PATCH] IB/mthca: use generic function instead of arbel_ version in mthca_free_region()
authorGuy German <guyg@voltaire.com>
Mon, 15 Aug 2005 14:38:50 +0000 (07:38 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 27 Aug 2005 03:37:36 +0000 (20:37 -0700)
Use the generic key_to_hw_index() function instead of the Arbel-specific
version in mthca_free_region().

Signed-off-by: Guy German <guyg@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_mr.c

index 0965e66061b7329278df5f8602a1c93facedd2bf..1f97a44477f5d8f31e37ebffb8e3c59bab779ddc 100644 (file)
@@ -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));
 }