diff options
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
-rw-r--r-- | drivers/infiniband/core/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index ed6b6c85c334..0b84a9cdfe5b 100644 --- a/drivers/infiniband/core/sysfs.c +++ b/drivers/infiniband/core/sysfs.c | |||
@@ -870,7 +870,7 @@ int ib_device_register_sysfs(struct ib_device *device, | |||
870 | goto err_put; | 870 | goto err_put; |
871 | } | 871 | } |
872 | 872 | ||
873 | if (device->node_type == RDMA_NODE_IB_SWITCH) { | 873 | if (rdma_cap_ib_switch(device)) { |
874 | ret = add_port(device, 0, port_callback); | 874 | ret = add_port(device, 0, port_callback); |
875 | if (ret) | 875 | if (ret) |
876 | goto err_put; | 876 | goto err_put; |