From 8f41a478d6b59a28564d2e2f72bb520a607a8c51 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 18 Apr 2019 12:56:06 +0200 Subject: [PATCH] drivers: tty: serial: sb1250-duart: fix missing parentheses Fix checkpatch warning: ERROR: Macros with complex values should be enclosed in parentheses #911: FILE: drivers/tty/serial/sb1250-duart.c:911: +#define SERIAL_SB1250_DUART_CONSOLE &sbd_console Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sb1250-duart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sb1250-duart.c b/drivers/tty/serial/sb1250-duart.c index 118422615af913..ec74f09e32810f 100644 --- a/drivers/tty/serial/sb1250-duart.c +++ b/drivers/tty/serial/sb1250-duart.c @@ -908,7 +908,7 @@ static int __init sbd_serial_console_init(void) console_initcall(sbd_serial_console_init); -#define SERIAL_SB1250_DUART_CONSOLE &sbd_console +#define SERIAL_SB1250_DUART_CONSOLE (&sbd_console) #else #define SERIAL_SB1250_DUART_CONSOLE NULL #endif /* CONFIG_SERIAL_SB1250_DUART_CONSOLE */