Thread (8 messages) 8 messages, 4 authors, 2014-09-30
STALE4261d

[PATCH 2/2] arch: arm: samsung: Clean-up usage of CONFIG_SERIAL_SAMSUNG_UARTS symbol

From: Tomasz Figa <hidden>
Date: 2014-09-30 20:31:19
Also in: linux-samsung-soc


On 30.09.2014 20:36, Arnd Bergmann wrote:
On Tuesday 30 September 2014 18:10:14 Tomasz Figa wrote:
quoted
quoted
quoted
@@ -110,7 +110,7 @@ void __init s3c24xx_init_uartdevs(char *name,
                                  struct s3c24xx_uart_resources *res,
                                  struct s3c2410_uartcfg *cfg, int no)
 {
-#ifdef CONFIG_SERIAL_SAMSUNG_UARTS
+#ifdef CONFIG_SERIAL_SAMSUNG
        struct platform_device *platdev;
        struct s3c2410_uartcfg *cfgptr = uart_cfgs;
        struct s3c24xx_uart_resources *resp;
Since you hardcode the number here now, you can actually drop this #ifdef.
I believe what Abhilash did is correct, because this code is not needed
when there is no serial support enabled.
I only added the #ifdef here because it was broken when
CONFIG_SERIAL_SAMSUNG_UARTS was undefined.
Fair enough. This isn't really that much code to really care and most
(if not all) use cases have UART enabled anyway.

Best regards,
Tomasz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help