serial: max310x: Using resource-managed function for GPIO
commit0e8cc7c2ea025b96b4ed57b52c61f2d982a95ddb
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 7 Jun 2016 15:59:23 +0000 (7 18:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:55:35 +0000 (25 13:55 -0700)
treefceefa73687a56ee44d59b4b5b774a20c6c86856
parent5bdb48b501e8366d5fd361cd402816aa3e525895
serial: max310x: Using resource-managed function for GPIO

Use resource managed functions devm_gpiochip_add_data() to make
error & exit path a bit simpler.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c