]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: cpm_uart: Adding proper request of GPIO used by cpm_uart driver
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 21 Aug 2013 15:59:24 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 05:06:22 +0000 (22:06 -0700)
commitf9ef7078af6d0f3a62075e3953a47c5ec1892927
treea4e94f9f671677209492f08ba13c1033a1ca573b
parentaeae70d517fa4033902b90205a5aa4f2ba6b99b2
tty: serial: cpm_uart: Adding proper request of GPIO used by cpm_uart driver

cpm_uart serial driver uses GPIO for control signals. In order to be used
properly, GPIOs have to be reserved. Comment in gpiolib.c considers illegal
the use of GPIOs without requesting them. In addition, the direction of the
GPIO has to be set properly.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c