summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/rdma.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2017-01-27 09:03:45 +0100
committerJens Axboe <axboe@fb.com>2017-02-22 13:34:00 -0700
commite5a39dd8238e5d42c830bbd8d31211adf6fea6ca (patch)
treea261dc1b1658d73b1de0ba237f26abed4e967276 /drivers/nvme/host/rdma.c
parent986994a27587efd8ce4c595cab89b570f7475359 (diff)
downloadop-kernel-dev-e5a39dd8238e5d42c830bbd8d31211adf6fea6ca.zip
op-kernel-dev-e5a39dd8238e5d42c830bbd8d31211adf6fea6ca.tar.gz
nvme: make nvmf_register_transport require a create_ctrl callback
nvmf_create_ctrl() relys on the presence of a create_crtl callback in the registered nvmf_transport_ops, so make nvmf_register_transport require one. Update the available call-sites as well to reflect these changes. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r--drivers/nvme/host/rdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index a75e95d..aedac6e 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -2063,8 +2063,7 @@ static int __init nvme_rdma_init_module(void)
return ret;
}
- nvmf_register_transport(&nvme_rdma_transport);
- return 0;
+ return nvmf_register_transport(&nvme_rdma_transport);
}
static void __exit nvme_rdma_cleanup_module(void)
OpenPOWER on IntegriCloud