mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Andy Shevchenko <[email protected]> [johan: amend commit message] Signed-off-by: Johan Hovold <[email protected]>
This commit is contained in:
committed by
Johan Hovold
parent
11fb08cffb
commit
5d47c887cc
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user