diff options
author | Marc Zyngier <maz@kernel.org> | 2020-12-04 16:47:39 +0000 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-12-09 18:06:45 +0100 |
commit | 5d47c887cceed5261e82e2cc7e996b877d5381f8 (patch) | |
tree | 604dd7dd47b185f6bed5adae26dd0100209fefc5 /drivers/usb | |
parent | 11fb08cffbebcbda76b3d882c19398c7571ab355 (diff) | |
download | linux-stable-5d47c887cceed5261e82e2cc7e996b877d5381f8.tar.gz linux-stable-5d47c887cceed5261e82e2cc7e996b877d5381f8.tar.bz2 linux-stable-5d47c887cceed5261e82e2cc7e996b877d5381f8.zip |
USB: serial: ftdi_sio: drop GPIO line checking dead code
Now that gpiolib can track the validity of GPIO pins, there is no need
to check whether the line is valid in request().
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201204164739.781812-5-maz@kernel.org
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
[johan: amend commit message]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 13e575f16bcd..a41ce9e60b96 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1841,9 +1841,6 @@ static int ftdi_gpio_request(struct gpio_chip *gc, unsigned int offset) struct ftdi_private *priv = usb_get_serial_port_data(port); int result; - if (priv->gpio_altfunc & BIT(offset)) - return -ENODEV; - mutex_lock(&priv->gpio_lock); if (!priv->gpio_used) { /* Set default pin states, as we cannot get them from device */ |