]> Gentwo Git Trees - linux/.git/commit
serial: mctrl_gpio: Remove unused mctrl_gpio_free
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 29 Jan 2025 02:00:48 +0000 (02:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Feb 2025 13:39:45 +0000 (14:39 +0100)
commit750a2a4228cea80fe427223bb896849e266106b8
treeb1c02fcab73d252e043797aad35e0100c56cab57
parente12ebf14fa3654f68589292e645ae1ef74786638
serial: mctrl_gpio: Remove unused mctrl_gpio_free

mctrl_gpio_free() was added in 2014 by
commit 84130aace839 ("tty/serial: Add GPIOLIB helpers for controlling
modem lines")

It does have a comment saying:
  '- * Normally, this function will not be called, as the GPIOs will
   - * be disposed of by the resource management code.'

indeed, it doesn't seem to have been used since it was added.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250129020048.245529-1-linux@treblig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/serial/driver.rst
drivers/tty/serial/serial_mctrl_gpio.c
drivers/tty/serial/serial_mctrl_gpio.h