Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1414870

Re: [PATCH 3/4] serial: 8250_mtk: drop !defined(MODULE) conditional

From Matthias Brugger <matthias.bgg@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] serial: 8250_mtk: drop !defined(MODULE) conditional
Date 2016-06-06 12:30 +0200
Message-ID <rGZXc-3zz-15@gated-at.bofh.it> (permalink)
References <rGZkt-34Q-7@gated-at.bofh.it> <rGZku-34Q-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 06/06/16 11:41, Masahiro Yamada wrote:
> The !defined(MODULE) conditional has been added to the
> OF_EARLYCON_DECLARE() define.
>
> This commit partially reverts commit 3f5921a60f74 ("serial:
> 8250/mediatek: fix building with SERIAL_8250=m").
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>

>
>   drivers/tty/serial/8250/8250_mtk.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c
> index 3489fbc..3611ec9 100644
> --- a/drivers/tty/serial/8250/8250_mtk.c
> +++ b/drivers/tty/serial/8250/8250_mtk.c
> @@ -301,7 +301,7 @@ static struct platform_driver mtk8250_platform_driver = {
>   };
>   module_platform_driver(mtk8250_platform_driver);
>
> -#if defined(CONFIG_SERIAL_8250_CONSOLE) && !defined(MODULE)
> +#ifdef CONFIG_SERIAL_8250_CONSOLE
>   static int __init early_mtk8250_setup(struct earlycon_device *device,
>   					const char *options)
>   {
>

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] serial: earlycon: keep earlycon symbols for non-module and driver clean-ups Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-06 11:50 +0200
  [PATCH 3/4] serial: 8250_mtk: drop !defined(MODULE) conditional Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-06 11:50 +0200
    Re: [PATCH 3/4] serial: 8250_mtk: drop !defined(MODULE) conditional Matthias Brugger <matthias.bgg@gmail.com> - 2016-06-06 12:30 +0200
  Re: [PATCH 0/4] serial: earlycon: keep earlycon symbols for non-module and driver clean-ups Arnd Bergmann <arnd@arndb.de> - 2016-06-06 12:30 +0200

csiph-web