From: Kaike Wan <kaike.wan@xxxxxxxxx> Integrate the file operations into the module_init and module_exit functions so that user applications can access the rv module. Signed-off-by: Todd Rimmer <todd.rimmer@xxxxxxxxx> Signed-off-by: Kaike Wan <kaike.wan@xxxxxxxxx> --- drivers/infiniband/ulp/rv/rv_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/infiniband/ulp/rv/rv_main.c b/drivers/infiniband/ulp/rv/rv_main.c index c40ee36c6f9e..04c5a8606598 100644 --- a/drivers/infiniband/ulp/rv/rv_main.c +++ b/drivers/infiniband/ulp/rv/rv_main.c @@ -253,11 +253,16 @@ static int __init rv_init_module(void) return -EINVAL; } + if (rv_file_init()) { + ib_unregister_client(&rv_client); + return -EINVAL; + } return 0; } static void __exit rv_cleanup_module(void) { + rv_file_uninit(); ib_unregister_client(&rv_client); rv_deinit_devices(); } -- 2.18.1