/* gpio_request_one - request a single GPIO with initial configuration @gpio: the GPIO number @flags: GPIO configuration as specified by GPIOF_* @label: a literal description string of this GPIO  */
int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
/* gpio_request_one - request a single GPIO with initial configuration @gpio: the GPIO number @flags: GPIO configuration as specified by GPIOF_* @label: a literal description string of this GPIO  */
int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)
{
	int err;
	err = gpio_request(gpio, label);
	if (err)
		return err;
	if (flags & GPIOF_DIR_IN)
		err = gpio_direction_input(gpio);
	else
		err = gpio_direction_output(gpio,
				(flags & GPIOF_INIT_HIGH) ? 1 : 0);
	if (err)
		gpio_free(gpio);
	return err;
}