diff options
author | Andy Shevchenko <[email protected]> | 2023-05-28 17:25:31 +0300 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2023-05-30 13:10:58 +0200 |
commit | 3ea3c9cff7f982b42126a009140cb73a53ecd647 (patch) | |
tree | 559e0330ecabc83aba29436da17b3d4785c762a6 | |
parent | bb269633f3da56ec65e4e5aa9d9fca0ef8b3d373 (diff) |
dsa: lan9303: Remove stray gpiod_unexport() call
There is no gpiod_export() and gpiod_unexport() looks pretty much stray.
The gpiod_export() and gpiod_unexport() shouldn't be used in the code,
GPIO sysfs is deprecated. That said, simply drop the stray call.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
-rw-r--r-- | drivers/net/dsa/lan9303-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index cbe831875347..b560e73c14ca 100644 --- a/drivers/net/dsa/lan9303-core.c +++ b/drivers/net/dsa/lan9303-core.c @@ -1462,7 +1462,6 @@ int lan9303_remove(struct lan9303 *chip) /* assert reset to the whole device to prevent it from doing anything */ gpiod_set_value_cansleep(chip->reset_gpio, 1); - gpiod_unexport(chip->reset_gpio); return 0; } |