aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
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