return -ENOMEM;
}
+#if 0
static int device_check_offline(struct device *dev, void *not_used)
{
int ret;
return device_supports_offline(dev) && !dev->offline ? -EBUSY : 0;
}
+#endif
/**
* device_offline - Prepare the device for hot-removal.
*/
int device_offline(struct device *dev)
{
- int ret;
+ int ret = 0;
+#if 0
if (dev->offline_disabled)
return -EPERM;
}
}
device_unlock(dev);
+#endif
return ret;
}
{
int ret = 0;
+#if 0
device_lock(dev);
if (device_supports_offline(dev)) {
if (dev->offline) {
}
}
device_unlock(dev);
+#endif
return ret;
}