diff options
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index c3239170d8b7..e28a494e2a3a 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -3753,7 +3753,7 @@ static void cm_add_one(struct ib_device *ib_device) | |||
3753 | struct cm_port *port; | 3753 | struct cm_port *port; |
3754 | struct ib_mad_reg_req reg_req = { | 3754 | struct ib_mad_reg_req reg_req = { |
3755 | .mgmt_class = IB_MGMT_CLASS_CM, | 3755 | .mgmt_class = IB_MGMT_CLASS_CM, |
3756 | .mgmt_class_version = IB_CM_CLASS_VERSION | 3756 | .mgmt_class_version = IB_CM_CLASS_VERSION, |
3757 | }; | 3757 | }; |
3758 | struct ib_port_modify port_modify = { | 3758 | struct ib_port_modify port_modify = { |
3759 | .set_port_cap_mask = IB_PORT_CM_SUP | 3759 | .set_port_cap_mask = IB_PORT_CM_SUP |
@@ -3801,7 +3801,8 @@ static void cm_add_one(struct ib_device *ib_device) | |||
3801 | 0, | 3801 | 0, |
3802 | cm_send_handler, | 3802 | cm_send_handler, |
3803 | cm_recv_handler, | 3803 | cm_recv_handler, |
3804 | port); | 3804 | port, |
3805 | 0); | ||
3805 | if (IS_ERR(port->mad_agent)) | 3806 | if (IS_ERR(port->mad_agent)) |
3806 | goto error2; | 3807 | goto error2; |
3807 | 3808 | ||