diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/tty/serial/sc16is7xx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index df9a384dfbda..11bb44039a57 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c | |||
| @@ -1120,6 +1120,9 @@ static int sc16is7xx_probe(struct device *dev, | |||
| 1120 | if (!ret) | 1120 | if (!ret) |
| 1121 | return 0; | 1121 | return 0; |
| 1122 | 1122 | ||
| 1123 | for (i = 0; i < s->uart.nr; i++) | ||
| 1124 | uart_remove_one_port(&s->uart, &s->p[i].port); | ||
| 1125 | |||
| 1123 | mutex_destroy(&s->mutex); | 1126 | mutex_destroy(&s->mutex); |
| 1124 | 1127 | ||
| 1125 | #ifdef CONFIG_GPIOLIB | 1128 | #ifdef CONFIG_GPIOLIB |
