IB/rdmavt: Do not use rvt prints which rely on driver too early
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Wed, 6 Jan 2016 18:03:39 +0000 (10:03 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:12 +0000 (20:37 -0500)
Trying to print debug and error messages with the rdmavt helpers will not
work out so well if the drivers have not provided the get_card and get
pci functions. Use the normal pr_error instead until we can check this.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rdmavt/vt.c

index 516c810fad658ac5487792e1c6468b4c2a9e05e3..e92af9c6521e9d0548e24f983cb4eb959fff7a2b 100644 (file)
@@ -266,7 +266,7 @@ int rvt_register_device(struct rvt_dev_info *rdi)
        /* Mem Region */
        ret = rvt_driver_mr_init(rdi);
        if (ret) {
-               rvt_pr_err(rdi, "Error in driver MR init.\n");
+               pr_err("Error in driver MR init.\n");
                goto bail_no_mr;
        }