serial: atmel: fix error handling when mctrl_gpio_init fails
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 12 Feb 2015 14:24:38 +0000 (15:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:15:03 +0000 (03:15 +0100)
commit722ccf416ac2804cdb9b5c84e81524fab775a577
tree42c8497180440a599697cd6b41327ecb4f815b30
parentc89b73703ea3e61ab233560d2c6c4fc0963111dc
serial: atmel: fix error handling when mctrl_gpio_init fails

mctrl_gpio_init at present doesn't return NULL. (It might be used in the
future when no gpios are to be used indicating success.) Properly pass
error returned and also make driver probing fail on error.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c