diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2012-01-20 21:46:41 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-01-20 22:02:30 -0500 |
commit | 4cfb7b7ce53bff8574ca152f433ab7fad62f1cad (patch) | |
tree | 35b054056181bea188e3c065620f266b6fd5f60e | |
parent | e745e06fbdf697ed7d611ea596e77278eeecd417 (diff) |
ARM: S3C24XX: use static declaration when it is not used in other files
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-s3c2410/mach-h1940.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-s3c2416/clock.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s3c2416/mach-smdk2416.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/mach-rx1950.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/s3c2443-clock.c | 2 |
6 files changed, 19 insertions, 25 deletions
diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c index 41245a603981..6b21ba107eab 100644 --- a/arch/arm/mach-s3c2410/mach-h1940.c +++ b/arch/arm/mach-s3c2410/mach-h1940.c | |||
@@ -162,7 +162,7 @@ static int h1940_gpiolib_latch_get(struct gpio_chip *chip, | |||
162 | return (latch_state >> (offset + 16)) & 1; | 162 | return (latch_state >> (offset + 16)) & 1; |
163 | } | 163 | } |
164 | 164 | ||
165 | struct gpio_chip h1940_latch_gpiochip = { | 165 | static struct gpio_chip h1940_latch_gpiochip = { |
166 | .base = H1940_LATCH_GPIO(0), | 166 | .base = H1940_LATCH_GPIO(0), |
167 | .owner = THIS_MODULE, | 167 | .owner = THIS_MODULE, |
168 | .label = "H1940_LATCH", | 168 | .label = "H1940_LATCH", |
@@ -304,7 +304,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = { | |||
304 | { .volt = 3841, .cur = 0, .level = 0}, | 304 | { .volt = 3841, .cur = 0, .level = 0}, |
305 | }; | 305 | }; |
306 | 306 | ||
307 | int h1940_bat_init(void) | 307 | static int h1940_bat_init(void) |
308 | { | 308 | { |
309 | int ret; | 309 | int ret; |
310 | 310 | ||
@@ -317,17 +317,17 @@ int h1940_bat_init(void) | |||
317 | 317 | ||
318 | } | 318 | } |
319 | 319 | ||
320 | void h1940_bat_exit(void) | 320 | static void h1940_bat_exit(void) |
321 | { | 321 | { |
322 | gpio_free(H1940_LATCH_SM803_ENABLE); | 322 | gpio_free(H1940_LATCH_SM803_ENABLE); |
323 | } | 323 | } |
324 | 324 | ||
325 | void h1940_enable_charger(void) | 325 | static void h1940_enable_charger(void) |
326 | { | 326 | { |
327 | gpio_set_value(H1940_LATCH_SM803_ENABLE, 1); | 327 | gpio_set_value(H1940_LATCH_SM803_ENABLE, 1); |
328 | } | 328 | } |
329 | 329 | ||
330 | void h1940_disable_charger(void) | 330 | static void h1940_disable_charger(void) |
331 | { | 331 | { |
332 | gpio_set_value(H1940_LATCH_SM803_ENABLE, 0); | 332 | gpio_set_value(H1940_LATCH_SM803_ENABLE, 0); |
333 | } | 333 | } |
@@ -364,7 +364,7 @@ static struct platform_device h1940_battery = { | |||
364 | }, | 364 | }, |
365 | }; | 365 | }; |
366 | 366 | ||
367 | DEFINE_SPINLOCK(h1940_blink_spin); | 367 | static DEFINE_SPINLOCK(h1940_blink_spin); |
368 | 368 | ||
369 | int h1940_led_blink_set(unsigned gpio, int state, | 369 | int h1940_led_blink_set(unsigned gpio, int state, |
370 | unsigned long *delay_on, unsigned long *delay_off) | 370 | unsigned long *delay_on, unsigned long *delay_off) |
diff --git a/arch/arm/mach-s3c2416/clock.c b/arch/arm/mach-s3c2416/clock.c index 59f54d1d7f8b..e01490db0993 100644 --- a/arch/arm/mach-s3c2416/clock.c +++ b/arch/arm/mach-s3c2416/clock.c | |||
@@ -132,12 +132,6 @@ static struct clk hsmmc0_clk = { | |||
132 | .ctrlbit = S3C2416_HCLKCON_HSMMC0, | 132 | .ctrlbit = S3C2416_HCLKCON_HSMMC0, |
133 | }; | 133 | }; |
134 | 134 | ||
135 | void __init_or_cpufreq s3c2416_setup_clocks(void) | ||
136 | { | ||
137 | s3c2443_common_setup_clocks(s3c2416_get_pll); | ||
138 | } | ||
139 | |||
140 | |||
141 | static struct clksrc_clk *clksrcs[] __initdata = { | 135 | static struct clksrc_clk *clksrcs[] __initdata = { |
142 | &hsspi_eplldiv, | 136 | &hsspi_eplldiv, |
143 | &hsspi_mux, | 137 | &hsspi_mux, |
diff --git a/arch/arm/mach-s3c2416/mach-smdk2416.c b/arch/arm/mach-s3c2416/mach-smdk2416.c index eebe1e72b93e..30a44f806e01 100644 --- a/arch/arm/mach-s3c2416/mach-smdk2416.c +++ b/arch/arm/mach-s3c2416/mach-smdk2416.c | |||
@@ -125,7 +125,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = { | |||
125 | } | 125 | } |
126 | }; | 126 | }; |
127 | 127 | ||
128 | void smdk2416_hsudc_gpio_init(void) | 128 | static void smdk2416_hsudc_gpio_init(void) |
129 | { | 129 | { |
130 | s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_UP); | 130 | s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_UP); |
131 | s3c_gpio_setpull(S3C2410_GPF(2), S3C_GPIO_PULL_NONE); | 131 | s3c_gpio_setpull(S3C2410_GPF(2), S3C_GPIO_PULL_NONE); |
@@ -133,20 +133,20 @@ void smdk2416_hsudc_gpio_init(void) | |||
133 | s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 0); | 133 | s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 0); |
134 | } | 134 | } |
135 | 135 | ||
136 | void smdk2416_hsudc_gpio_uninit(void) | 136 | static void smdk2416_hsudc_gpio_uninit(void) |
137 | { | 137 | { |
138 | s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 1); | 138 | s3c2410_modify_misccr(S3C2416_MISCCR_SEL_SUSPND, 1); |
139 | s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_NONE); | 139 | s3c_gpio_setpull(S3C2410_GPH(14), S3C_GPIO_PULL_NONE); |
140 | s3c_gpio_cfgpin(S3C2410_GPH(14), S3C_GPIO_SFN(0)); | 140 | s3c_gpio_cfgpin(S3C2410_GPH(14), S3C_GPIO_SFN(0)); |
141 | } | 141 | } |
142 | 142 | ||
143 | struct s3c24xx_hsudc_platdata smdk2416_hsudc_platdata = { | 143 | static struct s3c24xx_hsudc_platdata smdk2416_hsudc_platdata = { |
144 | .epnum = 9, | 144 | .epnum = 9, |
145 | .gpio_init = smdk2416_hsudc_gpio_init, | 145 | .gpio_init = smdk2416_hsudc_gpio_init, |
146 | .gpio_uninit = smdk2416_hsudc_gpio_uninit, | 146 | .gpio_uninit = smdk2416_hsudc_gpio_uninit, |
147 | }; | 147 | }; |
148 | 148 | ||
149 | struct s3c_fb_pd_win smdk2416_fb_win[] = { | 149 | static struct s3c_fb_pd_win smdk2416_fb_win[] = { |
150 | [0] = { | 150 | [0] = { |
151 | /* think this is the same as the smdk6410 */ | 151 | /* think this is the same as the smdk6410 */ |
152 | .win_mode = { | 152 | .win_mode = { |
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 5859e609d28c..7365a441cc5c 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c | |||
@@ -258,7 +258,7 @@ static struct pcf50633_bl_platform_data gta02_backlight_data = { | |||
258 | .ramp_time = 5, | 258 | .ramp_time = 5, |
259 | }; | 259 | }; |
260 | 260 | ||
261 | struct pcf50633_platform_data gta02_pcf_pdata = { | 261 | static struct pcf50633_platform_data gta02_pcf_pdata = { |
262 | .resumers = { | 262 | .resumers = { |
263 | [0] = PCF50633_INT1_USBINS | | 263 | [0] = PCF50633_INT1_USBINS | |
264 | PCF50633_INT1_USBREM | | 264 | PCF50633_INT1_USBREM | |
@@ -404,7 +404,7 @@ static struct platform_device gta02_nor_flash = { | |||
404 | }; | 404 | }; |
405 | 405 | ||
406 | 406 | ||
407 | struct platform_device s3c24xx_pwm_device = { | 407 | static struct platform_device s3c24xx_pwm_device = { |
408 | .name = "s3c24xx_pwm", | 408 | .name = "s3c24xx_pwm", |
409 | .num_resources = 0, | 409 | .num_resources = 0, |
410 | }; | 410 | }; |
diff --git a/arch/arm/mach-s3c2440/mach-rx1950.c b/arch/arm/mach-s3c2440/mach-rx1950.c index 80077f6472ee..4a8e2d34994c 100644 --- a/arch/arm/mach-s3c2440/mach-rx1950.c +++ b/arch/arm/mach-s3c2440/mach-rx1950.c | |||
@@ -217,7 +217,7 @@ static const struct s3c_adc_bat_thresh bat_lut_acin[] = { | |||
217 | { .volt = 3820, .cur = 0, .level = 0}, | 217 | { .volt = 3820, .cur = 0, .level = 0}, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | int rx1950_bat_init(void) | 220 | static int rx1950_bat_init(void) |
221 | { | 221 | { |
222 | int ret; | 222 | int ret; |
223 | 223 | ||
@@ -236,25 +236,25 @@ err_gpio1: | |||
236 | return ret; | 236 | return ret; |
237 | } | 237 | } |
238 | 238 | ||
239 | void rx1950_bat_exit(void) | 239 | static void rx1950_bat_exit(void) |
240 | { | 240 | { |
241 | gpio_free(S3C2410_GPJ(2)); | 241 | gpio_free(S3C2410_GPJ(2)); |
242 | gpio_free(S3C2410_GPJ(3)); | 242 | gpio_free(S3C2410_GPJ(3)); |
243 | } | 243 | } |
244 | 244 | ||
245 | void rx1950_enable_charger(void) | 245 | static void rx1950_enable_charger(void) |
246 | { | 246 | { |
247 | gpio_direction_output(S3C2410_GPJ(2), 1); | 247 | gpio_direction_output(S3C2410_GPJ(2), 1); |
248 | gpio_direction_output(S3C2410_GPJ(3), 1); | 248 | gpio_direction_output(S3C2410_GPJ(3), 1); |
249 | } | 249 | } |
250 | 250 | ||
251 | void rx1950_disable_charger(void) | 251 | static void rx1950_disable_charger(void) |
252 | { | 252 | { |
253 | gpio_direction_output(S3C2410_GPJ(2), 0); | 253 | gpio_direction_output(S3C2410_GPJ(2), 0); |
254 | gpio_direction_output(S3C2410_GPJ(3), 0); | 254 | gpio_direction_output(S3C2410_GPJ(3), 0); |
255 | } | 255 | } |
256 | 256 | ||
257 | DEFINE_SPINLOCK(rx1950_blink_spin); | 257 | static DEFINE_SPINLOCK(rx1950_blink_spin); |
258 | 258 | ||
259 | static int rx1950_led_blink_set(unsigned gpio, int state, | 259 | static int rx1950_led_blink_set(unsigned gpio, int state, |
260 | unsigned long *delay_on, unsigned long *delay_off) | 260 | unsigned long *delay_on, unsigned long *delay_off) |
@@ -382,7 +382,7 @@ static struct s3c2410fb_mach_info rx1950_lcd_cfg = { | |||
382 | 382 | ||
383 | static struct pwm_device *lcd_pwm; | 383 | static struct pwm_device *lcd_pwm; |
384 | 384 | ||
385 | void rx1950_lcd_power(int enable) | 385 | static void rx1950_lcd_power(int enable) |
386 | { | 386 | { |
387 | int i; | 387 | int i; |
388 | static int enabled; | 388 | static int enabled; |
diff --git a/arch/arm/plat-s3c24xx/s3c2443-clock.c b/arch/arm/plat-s3c24xx/s3c2443-clock.c index 95e68190d593..037b448992af 100644 --- a/arch/arm/plat-s3c24xx/s3c2443-clock.c +++ b/arch/arm/plat-s3c24xx/s3c2443-clock.c | |||
@@ -53,7 +53,7 @@ int s3c2443_clkcon_enable_s(struct clk *clk, int enable) | |||
53 | * elided as the EPLL can be either sourced by the XTAL or EXTCLK and as | 53 | * elided as the EPLL can be either sourced by the XTAL or EXTCLK and as |
54 | * such directly equating the two source clocks is impossible. | 54 | * such directly equating the two source clocks is impossible. |
55 | */ | 55 | */ |
56 | struct clk clk_mpllref = { | 56 | static struct clk clk_mpllref = { |
57 | .name = "mpllref", | 57 | .name = "mpllref", |
58 | .parent = &clk_xtal, | 58 | .parent = &clk_xtal, |
59 | }; | 59 | }; |