diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-06 12:12:25 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-13 12:11:28 -0400 |
commit | b1b3f49ce4606452279b58b17f2bbe2ba00304b7 (patch) | |
tree | c9cfdc72dd580a9c3ace71846af45b4f65268f46 /arch/arm/mach-s3c24xx | |
parent | 4f1cd91497774488ed16119ec3f54b3daf1561de (diff) |
ARM: config: sort select statements alphanumerically
As suggested by Andrew Morton:
This is a pet peeve of mine. Any time there's a long list of items
(header file inclusions, kconfig entries, array initalisers, etc) and
someone wants to add a new item, they *always* go and stick it at the
end of the list.
Guys, don't do this. Either put the new item into a randomly-chosen
position or, probably better, alphanumerically sort the list.
lets sort all our select statements alphanumerically. This commit was
created by the following perl:
while (<>) {
while (/\\\s*$/) {
$_ .= <>;
}
undef %selects if /^\s*config\s+/;
if (/^\s+select\s+(\w+).*/) {
if (defined($selects{$1})) {
if ($selects{$1} eq $_) {
print STDERR "Warning: removing duplicated $1 entry\n";
} else {
print STDERR "Error: $1 differently selected\n".
"\tOld: $selects{$1}\n".
"\tNew: $_\n";
exit 1;
}
}
$selects{$1} = $_;
next;
}
if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
/^endif/ or /^endchoice/)) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
undef %selects;
}
print;
}
if (%selects) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
}
It found two duplicates:
Warning: removing duplicated S5P_SETUP_MIPIPHY entry
Warning: removing duplicated HARDIRQS_SW_RESEND entry
and they are identical duplicates, hence the shrinkage in the diffstat
of two lines.
We have four testers reporting success of this change (Tony, Stephen,
Linus and Sekhar.)
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r-- | arch/arm/mach-s3c24xx/Kconfig | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index d56b0f7f2b20..2b6cb5f29c2d 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig | |||
@@ -17,10 +17,10 @@ config CPU_S3C2410 | |||
17 | bool "SAMSUNG S3C2410" | 17 | bool "SAMSUNG S3C2410" |
18 | default y | 18 | default y |
19 | select CPU_ARM920T | 19 | select CPU_ARM920T |
20 | select S3C2410_CLOCK | ||
21 | select CPU_LLSERIAL_S3C2410 | 20 | select CPU_LLSERIAL_S3C2410 |
22 | select S3C2410_PM if PM | 21 | select S3C2410_CLOCK |
23 | select S3C2410_CPUFREQ if CPU_FREQ_S3C24XX | 22 | select S3C2410_CPUFREQ if CPU_FREQ_S3C24XX |
23 | select S3C2410_PM if PM | ||
24 | help | 24 | help |
25 | Support for S3C2410 and S3C2410A family from the S3C24XX line | 25 | Support for S3C2410 and S3C2410A family from the S3C24XX line |
26 | of Samsung Mobile CPUs. | 26 | of Samsung Mobile CPUs. |
@@ -30,8 +30,8 @@ config CPU_S3C2412 | |||
30 | depends on ARCH_S3C24XX | 30 | depends on ARCH_S3C24XX |
31 | select CPU_ARM926T | 31 | select CPU_ARM926T |
32 | select CPU_LLSERIAL_S3C2440 | 32 | select CPU_LLSERIAL_S3C2440 |
33 | select S3C2412_PM if PM | ||
34 | select S3C2412_DMA if S3C24XX_DMA | 33 | select S3C2412_DMA if S3C24XX_DMA |
34 | select S3C2412_PM if PM | ||
35 | help | 35 | help |
36 | Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line | 36 | Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line |
37 | 37 | ||
@@ -40,10 +40,10 @@ config CPU_S3C2416 | |||
40 | depends on ARCH_S3C24XX | 40 | depends on ARCH_S3C24XX |
41 | select CPU_ARM926T | 41 | select CPU_ARM926T |
42 | select CPU_LLSERIAL_S3C2440 | 42 | select CPU_LLSERIAL_S3C2440 |
43 | select SAMSUNG_CLKSRC | 43 | select S3C2416_PM if PM |
44 | select S3C2443_COMMON | 44 | select S3C2443_COMMON |
45 | select S3C2443_DMA if S3C24XX_DMA | 45 | select S3C2443_DMA if S3C24XX_DMA |
46 | select S3C2416_PM if PM | 46 | select SAMSUNG_CLKSRC |
47 | help | 47 | help |
48 | Support for the S3C2416 SoC from the S3C24XX line | 48 | Support for the S3C2416 SoC from the S3C24XX line |
49 | 49 | ||
@@ -75,9 +75,9 @@ config CPU_S3C2443 | |||
75 | depends on ARCH_S3C24XX | 75 | depends on ARCH_S3C24XX |
76 | select CPU_ARM920T | 76 | select CPU_ARM920T |
77 | select CPU_LLSERIAL_S3C2440 | 77 | select CPU_LLSERIAL_S3C2440 |
78 | select SAMSUNG_CLKSRC | ||
79 | select S3C2443_COMMON | 78 | select S3C2443_COMMON |
80 | select S3C2443_DMA if S3C24XX_DMA | 79 | select S3C2443_DMA if S3C24XX_DMA |
80 | select SAMSUNG_CLKSRC | ||
81 | help | 81 | help |
82 | Support for the S3C2443 SoC from the S3C24XX line | 82 | Support for the S3C2443 SoC from the S3C24XX line |
83 | 83 | ||
@@ -156,16 +156,16 @@ config MACH_AML_M5900 | |||
156 | 156 | ||
157 | config ARCH_BAST | 157 | config ARCH_BAST |
158 | bool "Simtec Electronics BAST (EB2410ITX)" | 158 | bool "Simtec Electronics BAST (EB2410ITX)" |
159 | select ISA | ||
160 | select MACH_BAST_IDE | ||
159 | select S3C2410_IOTIMING if S3C2410_CPUFREQ | 161 | select S3C2410_IOTIMING if S3C2410_CPUFREQ |
160 | select S3C24XX_SIMTEC_PM if PM | 162 | select S3C24XX_DCLK |
161 | select S3C24XX_SIMTEC_NOR | 163 | select S3C24XX_SIMTEC_NOR |
164 | select S3C24XX_SIMTEC_PM if PM | ||
162 | select S3C24XX_SIMTEC_USB | 165 | select S3C24XX_SIMTEC_USB |
163 | select MACH_BAST_IDE | ||
164 | select S3C24XX_DCLK | ||
165 | select ISA | ||
166 | select S3C_DEV_HWMON | 166 | select S3C_DEV_HWMON |
167 | select S3C_DEV_USB_HOST | ||
168 | select S3C_DEV_NAND | 167 | select S3C_DEV_NAND |
168 | select S3C_DEV_USB_HOST | ||
169 | help | 169 | help |
170 | Say Y here if you are using the Simtec Electronics EB2410ITX | 170 | Say Y here if you are using the Simtec Electronics EB2410ITX |
171 | development board (also known as BAST) | 171 | development board (also known as BAST) |
@@ -181,9 +181,9 @@ config BAST_PC104_IRQ | |||
181 | config ARCH_H1940 | 181 | config ARCH_H1940 |
182 | bool "IPAQ H1940" | 182 | bool "IPAQ H1940" |
183 | select PM_H1940 if PM | 183 | select PM_H1940 if PM |
184 | select S3C_DEV_USB_HOST | ||
185 | select S3C_DEV_NAND | ||
186 | select S3C24XX_SETUP_TS | 184 | select S3C24XX_SETUP_TS |
185 | select S3C_DEV_NAND | ||
186 | select S3C_DEV_USB_HOST | ||
187 | help | 187 | help |
188 | Say Y here if you are using the HP IPAQ H1940 | 188 | Say Y here if you are using the HP IPAQ H1940 |
189 | 189 | ||
@@ -203,23 +203,23 @@ config PM_H1940 | |||
203 | config MACH_N30 | 203 | config MACH_N30 |
204 | bool "Acer N30 family" | 204 | bool "Acer N30 family" |
205 | select MACH_N35 | 205 | select MACH_N35 |
206 | select S3C_DEV_USB_HOST | ||
207 | select S3C_DEV_NAND | 206 | select S3C_DEV_NAND |
207 | select S3C_DEV_USB_HOST | ||
208 | help | 208 | help |
209 | Say Y here if you want suppt for the Acer N30, Acer N35, | 209 | Say Y here if you want suppt for the Acer N30, Acer N35, |
210 | Navman PiN570, Yakumo AlphaX or Airis NC05 PDAs. | 210 | Navman PiN570, Yakumo AlphaX or Airis NC05 PDAs. |
211 | 211 | ||
212 | config MACH_OTOM | 212 | config MACH_OTOM |
213 | bool "NexVision OTOM Board" | 213 | bool "NexVision OTOM Board" |
214 | select S3C_DEV_USB_HOST | ||
215 | select S3C_DEV_NAND | 214 | select S3C_DEV_NAND |
215 | select S3C_DEV_USB_HOST | ||
216 | help | 216 | help |
217 | Say Y here if you are using the Nex Vision OTOM board | 217 | Say Y here if you are using the Nex Vision OTOM board |
218 | 218 | ||
219 | config MACH_QT2410 | 219 | config MACH_QT2410 |
220 | bool "QT2410" | 220 | bool "QT2410" |
221 | select S3C_DEV_USB_HOST | ||
222 | select S3C_DEV_NAND | 221 | select S3C_DEV_NAND |
222 | select S3C_DEV_USB_HOST | ||
223 | help | 223 | help |
224 | Say Y here if you are using the Armzone QT2410 | 224 | Say Y here if you are using the Armzone QT2410 |
225 | 225 | ||
@@ -239,12 +239,12 @@ config MACH_TCT_HAMMER | |||
239 | 239 | ||
240 | config MACH_VR1000 | 240 | config MACH_VR1000 |
241 | bool "Thorcom VR1000" | 241 | bool "Thorcom VR1000" |
242 | select S3C24XX_SIMTEC_PM if PM | 242 | select MACH_BAST_IDE |
243 | select S3C24XX_DCLK | 243 | select S3C24XX_DCLK |
244 | select S3C24XX_SIMTEC_NOR | 244 | select S3C24XX_SIMTEC_NOR |
245 | select MACH_BAST_IDE | 245 | select S3C24XX_SIMTEC_PM if PM |
246 | select S3C_DEV_USB_HOST | ||
247 | select S3C24XX_SIMTEC_USB | 246 | select S3C24XX_SIMTEC_USB |
247 | select S3C_DEV_USB_HOST | ||
248 | help | 248 | help |
249 | Say Y here if you are using the Thorcom VR1000 board. | 249 | Say Y here if you are using the Thorcom VR1000 board. |
250 | 250 | ||
@@ -285,8 +285,8 @@ comment "S3C2412 Boards" | |||
285 | 285 | ||
286 | config MACH_JIVE | 286 | config MACH_JIVE |
287 | bool "Logitech Jive" | 287 | bool "Logitech Jive" |
288 | select S3C_DEV_USB_HOST | ||
289 | select S3C_DEV_NAND | 288 | select S3C_DEV_NAND |
289 | select S3C_DEV_USB_HOST | ||
290 | help | 290 | help |
291 | Say Y here if you are using the Logitech Jive. | 291 | Say Y here if you are using the Logitech Jive. |
292 | 292 | ||
@@ -314,15 +314,15 @@ config MACH_SMDK2413 | |||
314 | bool "SMDK2413" | 314 | bool "SMDK2413" |
315 | select MACH_S3C2413 | 315 | select MACH_S3C2413 |
316 | select S3C24XX_SMDK | 316 | select S3C24XX_SMDK |
317 | select S3C_DEV_USB_HOST | ||
318 | select S3C_DEV_NAND | 317 | select S3C_DEV_NAND |
318 | select S3C_DEV_USB_HOST | ||
319 | help | 319 | help |
320 | Say Y here if you are using an SMDK2413 | 320 | Say Y here if you are using an SMDK2413 |
321 | 321 | ||
322 | config MACH_VSTMS | 322 | config MACH_VSTMS |
323 | bool "VMSTMS" | 323 | bool "VMSTMS" |
324 | select S3C_DEV_USB_HOST | ||
325 | select S3C_DEV_NAND | 324 | select S3C_DEV_NAND |
325 | select S3C_DEV_USB_HOST | ||
326 | help | 326 | help |
327 | Say Y here if you are using an VSTMS board | 327 | Say Y here if you are using an VSTMS board |
328 | 328 | ||
@@ -351,13 +351,13 @@ comment "S3C2416 Boards" | |||
351 | 351 | ||
352 | config MACH_SMDK2416 | 352 | config MACH_SMDK2416 |
353 | bool "SMDK2416" | 353 | bool "SMDK2416" |
354 | select S3C2416_SETUP_SDHCI | ||
354 | select S3C24XX_SMDK | 355 | select S3C24XX_SMDK |
355 | select S3C_DEV_FB | 356 | select S3C_DEV_FB |
356 | select S3C_DEV_HSMMC | 357 | select S3C_DEV_HSMMC |
357 | select S3C_DEV_HSMMC1 | 358 | select S3C_DEV_HSMMC1 |
358 | select S3C_DEV_NAND | 359 | select S3C_DEV_NAND |
359 | select S3C_DEV_USB_HOST | 360 | select S3C_DEV_USB_HOST |
360 | select S3C2416_SETUP_SDHCI | ||
361 | help | 361 | help |
362 | Say Y here if you are using an SMDK2416 | 362 | Say Y here if you are using an SMDK2416 |
363 | 363 | ||
@@ -379,11 +379,11 @@ comment "S3C2440 Boards" | |||
379 | 379 | ||
380 | config MACH_ANUBIS | 380 | config MACH_ANUBIS |
381 | bool "Simtec Electronics ANUBIS" | 381 | bool "Simtec Electronics ANUBIS" |
382 | select S3C24XX_DCLK | ||
383 | select S3C24XX_SIMTEC_PM if PM | ||
384 | select HAVE_PATA_PLATFORM | 382 | select HAVE_PATA_PLATFORM |
385 | select S3C24XX_GPIO_EXTRA64 | ||
386 | select S3C2440_XTAL_12000000 | 383 | select S3C2440_XTAL_12000000 |
384 | select S3C24XX_DCLK | ||
385 | select S3C24XX_GPIO_EXTRA64 | ||
386 | select S3C24XX_SIMTEC_PM if PM | ||
387 | select S3C_DEV_USB_HOST | 387 | select S3C_DEV_USB_HOST |
388 | help | 388 | help |
389 | Say Y here if you are using the Simtec Electronics ANUBIS | 389 | Say Y here if you are using the Simtec Electronics ANUBIS |
@@ -391,18 +391,18 @@ config MACH_ANUBIS | |||
391 | 391 | ||
392 | config MACH_AT2440EVB | 392 | config MACH_AT2440EVB |
393 | bool "Avantech AT2440EVB development board" | 393 | bool "Avantech AT2440EVB development board" |
394 | select S3C_DEV_USB_HOST | ||
395 | select S3C_DEV_NAND | 394 | select S3C_DEV_NAND |
395 | select S3C_DEV_USB_HOST | ||
396 | help | 396 | help |
397 | Say Y here if you are using the AT2440EVB development board | 397 | Say Y here if you are using the AT2440EVB development board |
398 | 398 | ||
399 | config MACH_MINI2440 | 399 | config MACH_MINI2440 |
400 | bool "MINI2440 development board" | 400 | bool "MINI2440 development board" |
401 | select EEPROM_AT24 | 401 | select EEPROM_AT24 |
402 | select NEW_LEDS | ||
403 | select LEDS_CLASS | 402 | select LEDS_CLASS |
404 | select LEDS_TRIGGER | 403 | select LEDS_TRIGGER |
405 | select LEDS_TRIGGER_BACKLIGHT | 404 | select LEDS_TRIGGER_BACKLIGHT |
405 | select NEW_LEDS | ||
406 | select S3C_DEV_NAND | 406 | select S3C_DEV_NAND |
407 | select S3C_DEV_USB_HOST | 407 | select S3C_DEV_USB_HOST |
408 | help | 408 | help |
@@ -412,20 +412,20 @@ config MACH_MINI2440 | |||
412 | config MACH_NEXCODER_2440 | 412 | config MACH_NEXCODER_2440 |
413 | bool "NexVision NEXCODER 2440 Light Board" | 413 | bool "NexVision NEXCODER 2440 Light Board" |
414 | select S3C2440_XTAL_12000000 | 414 | select S3C2440_XTAL_12000000 |
415 | select S3C_DEV_USB_HOST | ||
416 | select S3C_DEV_NAND | 415 | select S3C_DEV_NAND |
416 | select S3C_DEV_USB_HOST | ||
417 | help | 417 | help |
418 | Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board | 418 | Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board |
419 | 419 | ||
420 | config MACH_OSIRIS | 420 | config MACH_OSIRIS |
421 | bool "Simtec IM2440D20 (OSIRIS) module" | 421 | bool "Simtec IM2440D20 (OSIRIS) module" |
422 | select S3C2410_IOTIMING if S3C2440_CPUFREQ | ||
423 | select S3C2440_XTAL_12000000 | ||
422 | select S3C24XX_DCLK | 424 | select S3C24XX_DCLK |
423 | select S3C24XX_SIMTEC_PM if PM | ||
424 | select S3C24XX_GPIO_EXTRA128 | 425 | select S3C24XX_GPIO_EXTRA128 |
425 | select S3C2440_XTAL_12000000 | 426 | select S3C24XX_SIMTEC_PM if PM |
426 | select S3C2410_IOTIMING if S3C2440_CPUFREQ | ||
427 | select S3C_DEV_USB_HOST | ||
428 | select S3C_DEV_NAND | 427 | select S3C_DEV_NAND |
428 | select S3C_DEV_USB_HOST | ||
429 | help | 429 | help |
430 | Say Y here if you are using the Simtec IM2440D20 module, also | 430 | Say Y here if you are using the Simtec IM2440D20 module, also |
431 | known as the Osiris. | 431 | known as the Osiris. |
@@ -445,8 +445,8 @@ config MACH_OSIRIS_DVS | |||
445 | 445 | ||
446 | config MACH_RX3715 | 446 | config MACH_RX3715 |
447 | bool "HP iPAQ rx3715" | 447 | bool "HP iPAQ rx3715" |
448 | select S3C2440_XTAL_16934400 | ||
449 | select PM_H1940 if PM | 448 | select PM_H1940 if PM |
449 | select S3C2440_XTAL_16934400 | ||
450 | select S3C_DEV_NAND | 450 | select S3C_DEV_NAND |
451 | help | 451 | help |
452 | Say Y here if you are using the HP iPAQ rx3715. | 452 | Say Y here if you are using the HP iPAQ rx3715. |
@@ -455,8 +455,8 @@ config ARCH_S3C2440 | |||
455 | bool "SMDK2440" | 455 | bool "SMDK2440" |
456 | select S3C2440_XTAL_16934400 | 456 | select S3C2440_XTAL_16934400 |
457 | select S3C24XX_SMDK | 457 | select S3C24XX_SMDK |
458 | select S3C_DEV_USB_HOST | ||
459 | select S3C_DEV_NAND | 458 | select S3C_DEV_NAND |
459 | select S3C_DEV_USB_HOST | ||
460 | help | 460 | help |
461 | Say Y here if you are using the SMDK2440. | 461 | Say Y here if you are using the SMDK2440. |
462 | 462 | ||
@@ -478,11 +478,11 @@ comment "S3C2442 Boards" | |||
478 | 478 | ||
479 | config MACH_NEO1973_GTA02 | 479 | config MACH_NEO1973_GTA02 |
480 | bool "Openmoko GTA02 / Freerunner phone" | 480 | bool "Openmoko GTA02 / Freerunner phone" |
481 | select I2C | ||
482 | select MACH_NEO1973 | ||
481 | select MFD_PCF50633 | 483 | select MFD_PCF50633 |
482 | select PCF50633_GPIO | 484 | select PCF50633_GPIO |
483 | select I2C | ||
484 | select POWER_SUPPLY | 485 | select POWER_SUPPLY |
485 | select MACH_NEO1973 | ||
486 | select S3C24XX_PWM | 486 | select S3C24XX_PWM |
487 | select S3C_DEV_USB_HOST | 487 | select S3C_DEV_USB_HOST |
488 | help | 488 | help |
@@ -490,13 +490,13 @@ config MACH_NEO1973_GTA02 | |||
490 | 490 | ||
491 | config MACH_RX1950 | 491 | config MACH_RX1950 |
492 | bool "HP iPAQ rx1950" | 492 | bool "HP iPAQ rx1950" |
493 | select S3C24XX_DCLK | ||
494 | select PM_H1940 if PM | ||
495 | select I2C | 493 | select I2C |
496 | select S3C24XX_PWM | 494 | select PM_H1940 if PM |
497 | select S3C_DEV_NAND | ||
498 | select S3C2410_IOTIMING if S3C2440_CPUFREQ | 495 | select S3C2410_IOTIMING if S3C2440_CPUFREQ |
499 | select S3C2440_XTAL_16934400 | 496 | select S3C2440_XTAL_16934400 |
497 | select S3C24XX_DCLK | ||
498 | select S3C24XX_PWM | ||
499 | select S3C_DEV_NAND | ||
500 | help | 500 | help |
501 | Say Y here if you're using HP iPAQ rx1950 | 501 | Say Y here if you're using HP iPAQ rx1950 |
502 | 502 | ||