/* This function implements the API that's compatible with current GPIO API used in U-Boot. The request is forwarded to particular GPIO driver. Returns 0 on success, negative value on error.  */
int gpio_free(unsigned gpio)
/* This function implements the API that's compatible with current GPIO API used in U-Boot. The request is forwarded to particular GPIO driver. Returns 0 on success, negative value on error.  */
int gpio_free(unsigned gpio)
{
	struct gpio_desc desc;
	int ret;
	ret = gpio_to_device(gpio, &desc);
	if (ret)
		return ret;
	return _dm_gpio_free(desc.dev, desc.offset);
}