int                     index;
 };
 
-static inline int ibdev_is_alive(const struct ib_device *dev)
-{
-       return dev->reg_state == IB_DEV_REGISTERED;
-}
-
 static ssize_t port_attr_show(struct kobject *kobj,
                              struct attribute *attr, char *buf)
 {
 
        if (!port_attr->show)
                return -EIO;
-       if (!ibdev_is_alive(p->ibdev))
-               return -ENODEV;
 
        return port_attr->show(p, port_attr, buf);
 }
 {
        struct ib_device *dev = container_of(device, struct ib_device, dev);
 
-       if (!ibdev_is_alive(dev))
-               return -ENODEV;
-
        switch (dev->node_type) {
        case RDMA_NODE_IB_CA:     return sprintf(buf, "%d: CA\n", dev->node_type);
        case RDMA_NODE_RNIC:      return sprintf(buf, "%d: RNIC\n", dev->node_type);
        struct ib_device_attr attr;
        ssize_t ret;
 
-       if (!ibdev_is_alive(dev))
-               return -ENODEV;
-
        ret = ib_query_device(dev, &attr);
        if (ret)
                return ret;
 {
        struct ib_device *dev = container_of(device, struct ib_device, dev);
 
-       if (!ibdev_is_alive(dev))
-               return -ENODEV;
-
        return sprintf(buf, "%04x:%04x:%04x:%04x\n",
                       be16_to_cpu(((__be16 *) &dev->node_guid)[0]),
                       be16_to_cpu(((__be16 *) &dev->node_guid)[1]),