/* This file is released under the GNU GPL v2.  */
static int umc_bus_pre_reset_helper(struct device *dev, void *data)
/* This file is released under the GNU GPL v2.  */
static int umc_bus_pre_reset_helper(struct device *dev, void *data)
{
	int ret = 0;
	if (dev->driver) {
		struct umc_dev *umc = to_umc_dev(dev);
		struct umc_driver *umc_drv = to_umc_driver(dev->driver);
		if (umc_drv->pre_reset)
			ret = umc_drv->pre_reset(umc);
		else
			device_release_driver(dev);
	}
	return ret;
}