summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2019-03-28 14:13:49 +0100
committerLinus Walleij2019-04-04 19:04:19 +0200
commit7e9fa3c9d3e3d4f5f13f66383666cd0f32ef3b81 (patch)
tree0ff40717e877d5dca65ce9e751e6d81da129d841 /drivers/gpio/gpiolib.c
parentgpio: mmio: Support two direction registers (diff)
downloadkernel-qcow2-linux-7e9fa3c9d3e3d4f5f13f66383666cd0f32ef3b81.tar.gz
kernel-qcow2-linux-7e9fa3c9d3e3d4f5f13f66383666cd0f32ef3b81.tar.xz
kernel-qcow2-linux-7e9fa3c9d3e3d4f5f13f66383666cd0f32ef3b81.zip
gpio: Remove obsolete comment about gpiochip_free_hogs() usage
gpiochip_free_hogs() was always called from gpiochip_remove(), not of_gpiochip_remove(). It is now also called from the failure patch in gpiochip_add_data_with_key(). Fixes: f625d4601759f1cf ("gpio: add GPIO hogging mechanism") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 144af0733581..f41ad889124f 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -4445,8 +4445,6 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
/**
* gpiochip_free_hogs - Scan gpio-controller chip and release GPIO hog
* @chip: gpio chip to act on
- *
- * This is only used by of_gpiochip_remove to free hogged gpios
*/
static void gpiochip_free_hogs(struct gpio_chip *chip)
{