nvme-rdma: call ops->reg_read64 instead of nvmf_reg_read64
authorSagi Grimberg <sagi@grimberg.me>
Mon, 10 Jul 2017 06:22:39 +0000 (09:22 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:36 +0000 (23:00 +0300)
To make the nvme_rdma_configure_admin_queue generic in preparation of
moving it to common code.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c

index 1bf7c3a55c969cec3bd9d6df93a9f64854fb43b3..b51e7df63df53f0b60bf74d560f58b5f7267f26a 100644 (file)
@@ -777,7 +777,7 @@ static int nvme_rdma_configure_admin_queue(struct nvme_rdma_ctrl *ctrl,
        if (error)
                goto out_cleanup_queue;
 
-       error = nvmf_reg_read64(&ctrl->ctrl, NVME_REG_CAP,
+       error = ctrl->ctrl.ops->reg_read64(&ctrl->ctrl, NVME_REG_CAP,
                        &ctrl->ctrl.cap);
        if (error) {
                dev_err(ctrl->ctrl.device,