1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
From 56b0a181e5339ac0f3758581d3d6f2367194dc21 Mon Sep 17 00:00:00 2001
From: Andy Green <andy@openmoko.com>
Date: Fri, 8 Aug 2008 13:57:54 +0100
Subject: [PATCH] checkpatch-fixes.patch
This cleans out some random externs in C files that checkpatch does not like
and introduces a couple of .h files to contain them. Plus some other minor
checkpatch style complaints.
Signed-off-by: Andy Green <andy@openmoko.com>
---
arch/arm/mach-s3c2410/mach-gta01.c | 4 ++--
arch/arm/mach-s3c2440/mach-gta02.c | 4 ++--
arch/arm/plat-s3c24xx/neo1973_pm_gsm.c | 6 +-----
drivers/video/backlight/gta01_bl.c | 2 +-
4 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
index 4927cd4..a364b76 100644
--- a/arch/arm/mach-s3c2410/mach-gta01.c
+++ b/arch/arm/mach-s3c2410/mach-gta01.c
@@ -73,6 +73,8 @@
#include <asm/plat-s3c24xx/pm.h>
#include <asm/plat-s3c24xx/udc.h>
#include <asm/plat-s3c24xx/neo1973.h>
+#include <asm/arch-s3c2410/neo1973-pm-gsm.h>
+
#include <linux/jbt6k74.h>
static struct map_desc gta01_iodesc[] __initdata = {
@@ -666,8 +668,6 @@ static void __init gta01_map_io(void)
s3c24xx_init_uarts(gta01_uartcfgs, ARRAY_SIZE(gta01_uartcfgs));
}
-extern int gta_gsm_interrupts;
-
static irqreturn_t gta01_modem_irq(int irq, void *param)
{
printk(KERN_DEBUG "GSM wakeup interrupt (IRQ %d)\n", irq);
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 1d7d262..f991f9a 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -76,6 +76,8 @@
#include <asm/plat-s3c24xx/pm.h>
#include <asm/plat-s3c24xx/udc.h>
#include <asm/plat-s3c24xx/neo1973.h>
+#include <asm/arch-s3c2410/neo1973-pm-gsm.h>
+
#include <linux/jbt6k74.h>
#include <linux/glamofb.h>
@@ -1531,8 +1533,6 @@ static void __init gta02_map_io(void)
s3c24xx_init_uarts(gta02_uartcfgs, ARRAY_SIZE(gta02_uartcfgs));
}
-extern int gta_gsm_interrupts;
-
static irqreturn_t gta02_modem_irq(int irq, void *param)
{
printk(KERN_DEBUG "modem wakeup interrupt\n");
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
index 68b7111..c15998d 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_gsm.c
@@ -18,12 +18,12 @@
#include <linux/console.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
-#include <linux/resume-dependency.h>
#include <asm/gpio.h>
#include <asm/mach-types.h>
#include <asm/arch/gta01.h>
#include <asm/plat-s3c24xx/neo1973.h>
+#include <asm/arch/s3c24xx-serial.h>
#ifdef CONFIG_MACH_NEO1973_GTA02
#include <asm/arch/gta02.h>
@@ -31,10 +31,6 @@
#include <asm/arch/regs-gpioj.h>
#endif
-extern void s3c24xx_serial_console_set_silence(int silence);
-extern void s3c24xx_serial_register_resume_dependency(struct resume_dependency *
- resume_dependency, int uart_index);
-
int gta_gsm_interrupts;
EXPORT_SYMBOL(gta_gsm_interrupts);
diff --git a/drivers/video/backlight/gta01_bl.c b/drivers/video/backlight/gta01_bl.c
index 34c19c8..a7170df 100644
--- a/drivers/video/backlight/gta01_bl.c
+++ b/drivers/video/backlight/gta01_bl.c
@@ -152,7 +152,7 @@ EXPORT_SYMBOL_GPL(gta01bl_deferred_resume);
static int gta01bl_resume(struct platform_device *dev)
{
- if (! gta01bl_defer_resume_backlight)
+ if (!gta01bl_defer_resume_backlight)
gta01bl_deferred_resume();
return 0;
}
--
1.5.6.5
|