Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Paolo Abeni
3ea3c9cf bb269633

-1
-1
drivers/net/dsa/lan9303-core.c
··· 1462 1462 1463 1463 /* assert reset to the whole device to prevent it from doing anything */ 1464 1464 gpiod_set_value_cansleep(chip->reset_gpio, 1); 1465 - gpiod_unexport(chip->reset_gpio); 1466 1465 1467 1466 return 0; 1468 1467 }