]> git.hungrycats.org Git - linux/commit
serial: sc16is7xx: remove obsolete out_thread label
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 7 Aug 2023 21:45:52 +0000 (17:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:30:00 +0000 (15:30 +0200)
commitdabc54a45711fe77674a6c0348231e00e66bd567
tree9a47fed79da17d4c5b262a9a5093726da4a69be6
parent2861ed4d6e6d1a2c9de9bf5b0abd996c2dc673d0
serial: sc16is7xx: remove obsolete out_thread label

Commit c8f71b49ee4d ("serial: sc16is7xx: setup GPIO controller later
in probe") moved GPIO setup code later in probe function. Doing so
also required to move ports cleanup code (out_ports label) after the
GPIO cleanup code.

After these moves, the out_thread label becomes misplaced and makes
part of the cleanup code illogical.

This patch remove the now obsolete out_thread label and make GPIO
setup code jump to out_ports label if it fails.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Reviewed-by: Lech Perczak <lech.perczak@camlingroup.com>
Tested-by: Lech Perczak <lech.perczak@camlingroup.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230807214556.540627-3-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c