summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/ar933x_uart.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-02-12 17:24:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-07 05:15:04 +0300
commit1d267ea6539f266352f4739c718e278dc62b1df7 (patch)
tree6835a58888a86ec7cb697a91e93266a0f2780969 /drivers/tty/serial/ar933x_uart.c
parent9e9f079c56517568868788945dc4a080de6e150b (diff)
downloadlinux-1d267ea6539f266352f4739c718e278dc62b1df7.tar.xz
serial: mctrl-gpio: simplify init routine
Instead of ignoring errors returned by devm_gpiod_get_index use devm_gpiod_get_index_optional which results in slightly more strict error handling which is good. Also use the fourth parameter to devm_gpiod_get_index_optional to be able to drop the explicit direction setting. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/ar933x_uart.c')
0 files changed, 0 insertions, 0 deletions