mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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 <andriy.shevchenko@linux.intel.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20230528142531.38602-1-andriy.shevchenko@linux.intel.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
bb269633f3
commit
3ea3c9cff7
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue