Uwe Kleine-König 8f1bd8f2ad serial: atmel: fix error path of probe function
If atmel_init_gpios fails the port has already been marked as busy (in
line 2629), so this must be undone in the error path.

This bug was introduced because I created the patch that finally
became 722ccf416ac2 ("serial: atmel: fix error handling when
mctrl_gpio_init fails") on top of 3.19 which didn't have commit
6fbb9bdf0f3f ("tty/serial: at91: fix error handling in
atmel_serial_probe()") yet.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 722ccf416ac2 ("serial: atmel: fix error handling when mctrl_gpio_init fails")
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-04 18:51:42 +01:00
..
2015-03-26 23:00:36 +01:00
2015-03-26 22:49:10 +01:00
2015-04-07 11:07:20 +02:00
2015-03-26 22:49:10 +01:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2014-06-19 13:04:52 -07:00
2015-08-04 22:07:27 -07:00
2015-06-26 15:53:22 -07:00
2015-03-26 22:49:10 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-06-19 13:04:52 -07:00