Skip to content

Commit 3ea3c9c

Browse files
andy-shevPaolo Abeni
authored andcommitted
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]>
1 parent bb26963 commit 3ea3c9c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/dsa/lan9303-core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,6 @@ int lan9303_remove(struct lan9303 *chip)
14621462

14631463
/* assert reset to the whole device to prevent it from doing anything */
14641464
gpiod_set_value_cansleep(chip->reset_gpio, 1);
1465-
gpiod_unexport(chip->reset_gpio);
14661465

14671466
return 0;
14681467
}

0 commit comments

Comments
 (0)