if (dev->driver && dev->driver->resume) { ret = dev->driver->resume(dev, RESUME_POWER_ON); if (ret == 0) ret = dev->driver->resume(dev, RESUME_RESTORE_STATE); if (ret == 0) ret = dev->driver->resume(dev, RESUME_ENABLE); }
if (dev->driver && dev->driver->resume) ret = dev->driver->resume(dev);
static int platform_resume(struct device * dev){	int ret = 0;	if (dev->driver && dev->driver->resume) {		ret = dev->driver->resume(dev, RESUME_POWER_ON);		if (ret == 0)			ret = dev->driver->resume(dev, RESUME_RESTORE_STATE);		if (ret == 0)			ret = dev->driver->resume(dev, RESUME_ENABLE);	}	return ret;}