summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-08-04 15:55:18 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2015-10-02 09:54:32 +0200
commit57106e5ca55bea70e3e296a3e7546aefe0d1dabe (patch)
treefe198a9c29026b3f996f99edf935866357331610
parent18fab3995e8a6c4e3ffe2adced0ffa76eebdc989 (diff)
downloadlinux-57106e5ca55bea70e3e296a3e7546aefe0d1dabe.tar.gz
linux-57106e5ca55bea70e3e296a3e7546aefe0d1dabe.tar.bz2
linux-57106e5ca55bea70e3e296a3e7546aefe0d1dabe.zip
pinctrl: sh-pfc: Remove empty gpio_function_free()
gpio_chip.free() is optional, and can just be left unimplemented. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/sh-pfc/gpio.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pinctrl/sh-pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c
index b380e3f17b12..e46439030914 100644
--- a/drivers/pinctrl/sh-pfc/gpio.c
+++ b/drivers/pinctrl/sh-pfc/gpio.c
@@ -286,17 +286,12 @@ static int gpio_function_request(struct gpio_chip *gc, unsigned offset)
return ret;
}
-static void gpio_function_free(struct gpio_chip *gc, unsigned offset)
-{
-}
-
static int gpio_function_setup(struct sh_pfc_chip *chip)
{
struct sh_pfc *pfc = chip->pfc;
struct gpio_chip *gc = &chip->gpio_chip;
gc->request = gpio_function_request;
- gc->free = gpio_function_free;
gc->label = pfc->info->name;
gc->owner = THIS_MODULE;