serial: max310x: Always use dynamic GPIO ID assignment
authorAlexander Shiyan <shc_work@mail.ru>
Mon, 10 Feb 2014 18:18:32 +0000 (22:18 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:34:47 +0000 (09:34 -0800)
commitdba29a2894771562d265232ae4b61f0310bab1f5
tree005e94d3ce88997382ac8c771619ace115ba749a
parentd3a8a252e177cfaa2fb04120dd944104e4417bf5
serial: max310x: Always use dynamic GPIO ID assignment

Always register GPIOs and use dynamic GPIO ID assignment.
This is no much worth if GPIOs is not used, but helps remove
private driver header and add DT support in the future.
Additionally, patch adds missing uart_unregister_driver()
call if probe() fails.

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