]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: samsung: Enable console as module
authorSam Protsenko <semen.protsenko@linaro.org>
Sat, 4 Dec 2021 19:57:56 +0000 (21:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Dec 2021 15:54:10 +0000 (16:54 +0100)
commit6028b7e8e702704dbe0cdbede750cc492ac02f4c
tree8323a7e6caf06ec8e13463c4b0a3b658e637a48d
parent0c7decf216924429a2bb029b41190892419c23c3
tty: serial: samsung: Enable console as module

Enable serial driver to be built as a module. To do so, init the console
support on driver/module load instead of using console_initcall().

Inspired by commit 64810107ec20 ("tty: serial: meson: enable console as
module").

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20211204195757.8600-5-semen.protsenko@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/samsung_tty.c