RDMA: iWARP Core Changes.
[safe/jmp/linux-2.6] / drivers / infiniband / ulp / srp / ib_srp.c
index 61c13d1..feb1fcd 100644 (file)
@@ -1899,7 +1899,7 @@ static void srp_add_one(struct ib_device *device)
        if (IS_ERR(srp_dev->fmr_pool))
                srp_dev->fmr_pool = NULL;
 
-       if (device->node_type == IB_NODE_SWITCH) {
+       if (device->node_type == RDMA_NODE_IB_SWITCH) {
                s = 0;
                e = 0;
        } else {