RDMA: Rename port_callback to init_port
[linux-block.git] / drivers / infiniband / hw / hfi1 / verbs.c
index ec582d86025f0288a4fad9a9a825cddea3744ed3..8957adf58af7ba6d5d52e185135071f86cd78b71 100644 (file)
@@ -1622,6 +1622,7 @@ static const struct ib_device_ops hfi1_dev_ops = {
        .alloc_rdma_netdev = hfi1_vnic_alloc_rn,
        .get_dev_fw_str = hfi1_get_dev_fw_str,
        .get_hw_stats = get_hw_stats,
+       .init_port = hfi1_create_port_files,
        .modify_device = modify_device,
        /* keep process mad in the driver */
        .process_mad = hfi1_process_mad,
@@ -1679,7 +1680,6 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd)
        /*
         * Fill in rvt info object.
         */
-       dd->verbs_dev.rdi.driver_f.port_callback = hfi1_create_port_files;
        dd->verbs_dev.rdi.driver_f.get_pci_dev = get_pci_dev;
        dd->verbs_dev.rdi.driver_f.check_ah = hfi1_check_ah;
        dd->verbs_dev.rdi.driver_f.notify_new_ah = hfi1_notify_new_ah;