/* 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_request(unsigned gpio, const char *label)
/* 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_request(unsigned gpio, const char *label)
{
	struct gpio_desc desc;
	int ret;
	ret = gpio_to_device(gpio, &desc);
	if (ret)
		return ret;
	return dm_gpio_request(&desc, label);
}