Skip to contentSkip to conversation

ARM: S3C64XX: Staticise s3c64xx_init_uarts()

PATCH New Mark Brown 2 participants 2 messages Dec 29, 2011

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ARM: S3C64XX: Staticise s3c64xx_init_uarts()

Since the merge of everything into common.c s3c64xx_init_uarts() is now only used within the one source file and should therefore be declared static.

---
 arch/arm/mach-s3c64xx/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-s3c64xx/common.c +1 -1
index 8ae5b16..f8cc5a0 100644
@@ -49,7 +49,7 @@
 
 /* uart registration process */
 
-void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)
+static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)
 {
 	s3c24xx_init_uartdevs("s3c6400-uart", s3c64xx_uart_resources, cfg, no);
 }
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 1/1 ARM: S3C64XX: Staticise s3c64xx_init_uarts()

Quoted 16 lines · Mark Brown

Since the merge of everything into common.c s3c64xx_init_uarts() is now only used within the one source file and should therefore be declared static.

---
 arch/arm/mach-s3c64xx/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-s3c64xx/common.c +0 -0

s3c64xx/common.c
index 8ae5b16..f8cc5a0 100644

arch/arm/mach-s3c64xx/common.c line 52

Quoted 5 lines
arch/arm/mach-s3c64xx/common.c +1 -1
@@ -49,7 +49,7 @@
 
 /* uart registration process */
 
-void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)
+static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int

no)

Quoted 6 lines
arch/arm/mach-s3c64xx/common.c +0 -0
 {
 	s3c24xx_init_uartdevs("s3c6400-uart", s3c64xx_uart_resources, cfg,
 no);

}
--
1.7.7.3

OK, let me send this to patch system.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.