Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-14 10:51:30 +0200
committerTakashi Iwai <tiwai@suse.de>2019-05-14 10:51:32 +0200
commit52dfec56da0f37960e522d6788931c972ee2071e (patch)
tree4c4c54ec017c721242d13530e1a92dd18500fa0e
parentc5a0cf2830ab50702aa5974a735676089864bc63 (diff)
sc16is7xx: move label 'err_spi' to correct section
(bsc#1051510). suse-commit: 557cab8c62020772e6397410cf1e0268ab8799eb
-rw-r--r--drivers/tty/serial/sc16is7xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index 8b1c92c3c5fd..1d13538a37f4 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -1499,10 +1499,12 @@ static int __init sc16is7xx_init(void)
#endif
return ret;
+#ifdef CONFIG_SERIAL_SC16IS7XX_SPI
err_spi:
#ifdef CONFIG_SERIAL_SC16IS7XX_I2C
i2c_del_driver(&sc16is7xx_i2c_uart_driver);
#endif
+#endif
err_i2c:
uart_unregister_driver(&sc16is7xx_uart);
return ret;