diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2012-07-25 21:19:53 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-05 15:18:45 +1000 |
commit | b4b8d1e48e05313b163a36946be1a82e5bc5f9ad (patch) | |
tree | fe8f502ead38666aae28e573465b7ecc48f6ba6a /drivers/infiniband/hw/ehca/ehca_cq.c | |
parent | 579468a9f4634c18a59ce8435c12b0623c8b924f (diff) | |
download | linux-b4b8d1e48e05313b163a36946be1a82e5bc5f9ad.tar.gz linux-b4b8d1e48e05313b163a36946be1a82e5bc5f9ad.tar.bz2 linux-b4b8d1e48e05313b163a36946be1a82e5bc5f9ad.zip |
IB/ehca: Remove uses of virt_to_abs() and abs_to_virt()
abs_to_virt() simply calls __va() and we'd like to get rid of it,
so replace all abs_to_virt() uses with __va().
__va() returns void *, so when assigning to a pointer there's no need
to cast.
Similarly virt_to_abs() just calls __pa().
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_cq.c')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_cq.c b/drivers/infiniband/hw/ehca/ehca_cq.c index d9b0ebcb67d7..8f5290147e8a 100644 --- a/drivers/infiniband/hw/ehca/ehca_cq.c +++ b/drivers/infiniband/hw/ehca/ehca_cq.c @@ -220,7 +220,7 @@ struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, int comp_vector, cq = ERR_PTR(-EAGAIN); goto create_cq_exit4; } - rpage = virt_to_abs(vpage); + rpage = __pa(vpage); h_ret = hipz_h_register_rpage_cq(adapter_handle, my_cq->ipz_cq_handle, |