Skip to content

Commit

Permalink
[PATCH] IB/mthca: use generic function instead of arbel_ version in m…
Browse files Browse the repository at this point in the history
…thca_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 <guyg@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Guy German authored and Roland Dreier committed Aug 27, 2005
1 parent ffbf4c3 commit 7f9f2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7f9f2db

Please sign in to comment.