tty_ldisc: simplify tty_ldisc_autoload initialization
authorPavel Machek <pavel@denx.de>
Tue, 24 Sep 2019 08:32:44 +0000 (10:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 13:11:25 +0000 (15:11 +0200)
commit530c4ba3fa05bf121b87b13befc2f5a7e97cea15
treedd522d9586cd69de11ba69ccd773dee68af4844e
parentc791fc76bc72320135fa79368d70005424016de2
tty_ldisc: simplify tty_ldisc_autoload initialization

We have got existing macro to check for CONFIG option, use it.

Signed-off-by: Pavel Machek <pavel@denx.de>
Link: https://lore.kernel.org/r/20190924083244.GA4344@amd
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c