Commit 57106e5c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: sh-pfc: Remove empty gpio_function_free()

gpio_chip.free() is optional, and can just be left unimplemented.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 18fab399
...@@ -286,17 +286,12 @@ static int gpio_function_request(struct gpio_chip *gc, unsigned offset) ...@@ -286,17 +286,12 @@ static int gpio_function_request(struct gpio_chip *gc, unsigned offset)
return ret; return ret;
} }
static void gpio_function_free(struct gpio_chip *gc, unsigned offset)
{
}
static int gpio_function_setup(struct sh_pfc_chip *chip) static int gpio_function_setup(struct sh_pfc_chip *chip)
{ {
struct sh_pfc *pfc = chip->pfc; struct sh_pfc *pfc = chip->pfc;
struct gpio_chip *gc = &chip->gpio_chip; struct gpio_chip *gc = &chip->gpio_chip;
gc->request = gpio_function_request; gc->request = gpio_function_request;
gc->free = gpio_function_free;
gc->label = pfc->info->name; gc->label = pfc->info->name;
gc->owner = THIS_MODULE; gc->owner = THIS_MODULE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment