diff options
author | Sekhar Nori <nsekhar@ti.com> | 2010-06-28 07:46:38 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-09-24 10:40:23 -0400 |
commit | db549d22c4b84824f90558eb8e6b116cf134794d (patch) | |
tree | 99600a41610c8839bf104ad31f9e989c47b26e2b | |
parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) |
davinci: da850 evm: sparse cleanup: make file local variables static
Without this cleanup, sparse checker reports warnings of the type:
CHECK arch/arm/mach-davinci/board-da850-evm.c
arch/arm/mach-davinci/board-da850-evm.c:112:22: warning: symbol 'da850_evm_nandflash_partition' was not declared. Should it be static?
The nand flash partitions and regulator supplies are used within
the EVM file and so should have been static
This patch has been boot tested on DA830 and DA850 EVMs.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index fdc2cc500fc6..711a56a4c963 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -110,7 +110,7 @@ static struct platform_device da850_pm_device = { | |||
110 | * to boot, using TI's tools to install the secondary boot loader | 110 | * to boot, using TI's tools to install the secondary boot loader |
111 | * (UBL) and U-Boot. | 111 | * (UBL) and U-Boot. |
112 | */ | 112 | */ |
113 | struct mtd_partition da850_evm_nandflash_partition[] = { | 113 | static struct mtd_partition da850_evm_nandflash_partition[] = { |
114 | { | 114 | { |
115 | .name = "u-boot env", | 115 | .name = "u-boot env", |
116 | .offset = 0, | 116 | .offset = 0, |
@@ -406,7 +406,7 @@ static int da850_lcd_hw_init(void) | |||
406 | /* TPS65070 voltage regulator support */ | 406 | /* TPS65070 voltage regulator support */ |
407 | 407 | ||
408 | /* 3.3V */ | 408 | /* 3.3V */ |
409 | struct regulator_consumer_supply tps65070_dcdc1_consumers[] = { | 409 | static struct regulator_consumer_supply tps65070_dcdc1_consumers[] = { |
410 | { | 410 | { |
411 | .supply = "usb0_vdda33", | 411 | .supply = "usb0_vdda33", |
412 | }, | 412 | }, |
@@ -416,7 +416,7 @@ struct regulator_consumer_supply tps65070_dcdc1_consumers[] = { | |||
416 | }; | 416 | }; |
417 | 417 | ||
418 | /* 3.3V or 1.8V */ | 418 | /* 3.3V or 1.8V */ |
419 | struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { | 419 | static struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { |
420 | { | 420 | { |
421 | .supply = "dvdd3318_a", | 421 | .supply = "dvdd3318_a", |
422 | }, | 422 | }, |
@@ -429,14 +429,14 @@ struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { | |||
429 | }; | 429 | }; |
430 | 430 | ||
431 | /* 1.2V */ | 431 | /* 1.2V */ |
432 | struct regulator_consumer_supply tps65070_dcdc3_consumers[] = { | 432 | static struct regulator_consumer_supply tps65070_dcdc3_consumers[] = { |
433 | { | 433 | { |
434 | .supply = "cvdd", | 434 | .supply = "cvdd", |
435 | }, | 435 | }, |
436 | }; | 436 | }; |
437 | 437 | ||
438 | /* 1.8V LDO */ | 438 | /* 1.8V LDO */ |
439 | struct regulator_consumer_supply tps65070_ldo1_consumers[] = { | 439 | static struct regulator_consumer_supply tps65070_ldo1_consumers[] = { |
440 | { | 440 | { |
441 | .supply = "sata_vddr", | 441 | .supply = "sata_vddr", |
442 | }, | 442 | }, |
@@ -452,7 +452,7 @@ struct regulator_consumer_supply tps65070_ldo1_consumers[] = { | |||
452 | }; | 452 | }; |
453 | 453 | ||
454 | /* 1.2V LDO */ | 454 | /* 1.2V LDO */ |
455 | struct regulator_consumer_supply tps65070_ldo2_consumers[] = { | 455 | static struct regulator_consumer_supply tps65070_ldo2_consumers[] = { |
456 | { | 456 | { |
457 | .supply = "sata_vdd", | 457 | .supply = "sata_vdd", |
458 | }, | 458 | }, |
@@ -475,7 +475,7 @@ static struct tps6507x_reg_platform_data tps6507x_platform_data = { | |||
475 | .defdcdc_default = true, | 475 | .defdcdc_default = true, |
476 | }; | 476 | }; |
477 | 477 | ||
478 | struct regulator_init_data tps65070_regulator_data[] = { | 478 | static struct regulator_init_data tps65070_regulator_data[] = { |
479 | /* dcdc1 */ | 479 | /* dcdc1 */ |
480 | { | 480 | { |
481 | .constraints = { | 481 | .constraints = { |