aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2009-10-09 11:25:42 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 13:21:34 -0500
commit5950b55b0498f268d1ffa6adb63f96a1f350c37e (patch)
tree027f5c01e8c0d121533e8f1e9ecc35eb5d14bd97 /arch/arm
parent733975a314e4ddd374676cd300e207dd44eeafd2 (diff)
davinci: DA830/OMAP-L137 EVM: fix warning with default config
This patch fixes the following warning seen when building with default config: arch/arm/mach-davinci/board-da830-evm.c:371: warning: 'da830_evm_devices' defined but not used Tested on DA830 EVM with and without CONFIG_DA830_UI_NAND enabled. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-davinci/board-da830-evm.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c
index ea9bc25e9288..dc169ec80a9f 100644
--- a/arch/arm/mach-davinci/board-da830-evm.c
+++ b/arch/arm/mach-davinci/board-da830-evm.c
@@ -412,12 +412,6 @@ static struct platform_device da830_evm_nand_device = {
412}; 412};
413#endif 413#endif
414 414
415static struct platform_device *da830_evm_devices[] __initdata = {
416#ifdef CONFIG_DA830_UI_NAND
417 &da830_evm_nand_device,
418#endif
419};
420
421/* 415/*
422 * UI board NAND/NOR flashes only use 8-bit data bus. 416 * UI board NAND/NOR flashes only use 8-bit data bus.
423 */ 417 */
@@ -502,10 +496,9 @@ static __init void da830_evm_init(void)
502 pr_warning("da830_evm_init: emif25 mux setup failed: %d\n", 496 pr_warning("da830_evm_init: emif25 mux setup failed: %d\n",
503 ret); 497 ret);
504 498
505 ret = platform_add_devices(da830_evm_devices, 499 ret = platform_device_register(&da830_evm_nand_device);
506 ARRAY_SIZE(da830_evm_devices));
507 if (ret) 500 if (ret)
508 pr_warning("da830_evm_init: EVM devices not added\n"); 501 pr_warning("da830_evm_init: NAND device not registered.\n");
509#endif 502#endif
510#endif 503#endif
511 504