diff options
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index ecb51b396c42..cfc4de7a5da4 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c | |||
@@ -360,7 +360,8 @@ static int ehca_sense_attributes(struct ehca_shca *shca) | |||
360 | * a firmware property, so it's valid across all adapters | 360 | * a firmware property, so it's valid across all adapters |
361 | */ | 361 | */ |
362 | if (ehca_lock_hcalls == -1) | 362 | if (ehca_lock_hcalls == -1) |
363 | ehca_lock_hcalls = !(shca->hca_cap & HCA_CAP_H_ALLOC_RES_SYNC); | 363 | ehca_lock_hcalls = !EHCA_BMASK_GET(HCA_CAP_H_ALLOC_RES_SYNC, |
364 | shca->hca_cap); | ||
364 | 365 | ||
365 | /* translate supported MR page sizes; always support 4K */ | 366 | /* translate supported MR page sizes; always support 4K */ |
366 | shca->hca_cap_mr_pgsize = EHCA_PAGESIZE; | 367 | shca->hca_cap_mr_pgsize = EHCA_PAGESIZE; |