]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f061e0d72a712decf123da981b8930c3390a3f4
tree005e94d3ce88997382ac8c771619ace115ba749a
parentd7a08d76d1435998d2f3f1bd042182825531417f
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