]> git.baikalelectronics.ru Git - kernel.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)
commitb7c60c06c4d7092749bfbf98f0ea04acfb98f6cc
treefca59c48899d22965b4cdba30dc148bb98036eb3
parenta2096b9334c9e60528a2a7f52c1d7b9335ec11c1
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