summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-da830-evm.c
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2009-10-09 20:55:42 +0530
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 10:21:34 -0800
commit5950b55b0498f268d1ffa6adb63f96a1f350c37e (patch)
tree027f5c01e8c0d121533e8f1e9ecc35eb5d14bd97 /arch/arm/mach-davinci/board-da830-evm.c
parent733975a314e4ddd374676cd300e207dd44eeafd2 (diff)
downloadtalos-op-linux-5950b55b0498f268d1ffa6adb63f96a1f350c37e.tar.gz
talos-op-linux-5950b55b0498f268d1ffa6adb63f96a1f350c37e.zip
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/mach-davinci/board-da830-evm.c')
-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 = {
};
#endif
-static struct platform_device *da830_evm_devices[] __initdata = {
-#ifdef CONFIG_DA830_UI_NAND
- &da830_evm_nand_device,
-#endif
-};
-
/*
* UI board NAND/NOR flashes only use 8-bit data bus.
*/
@@ -502,10 +496,9 @@ static __init void da830_evm_init(void)
pr_warning("da830_evm_init: emif25 mux setup failed: %d\n",
ret);
- ret = platform_add_devices(da830_evm_devices,
- ARRAY_SIZE(da830_evm_devices));
+ ret = platform_device_register(&da830_evm_nand_device);
if (ret)
- pr_warning("da830_evm_init: EVM devices not added\n");
+ pr_warning("da830_evm_init: NAND device not registered.\n");
#endif
#endif
OpenPOWER on IntegriCloud