]> git.karo-electronics.de Git - linux-beck.git/commit
serial: mctrl_gpio: enable API usage only for initialized mctrl_gpios struct
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 31 May 2016 08:59:17 +0000 (10:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:30:42 +0000 (14:30 -0700)
commit434be0ae7aa746f481c3a22139e472dbc3f4f817
treefca59c48899d22965b4cdba30dc148bb98036eb3
parentbf5cee681e57babde5358a71e59b75151eb02c1a
serial: mctrl_gpio: enable API usage only for initialized mctrl_gpios struct

This workaround is needed for the cases, where mctrl_gpio API is used
before mctrl_gpio_init() was invoked. This happens in 8250 during
console initialization, as the driver sets DTR signal.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_mctrl_gpio.c