davinci: DA830/OMAP-L137 EVM: fix warning with default config
authorSekhar Nori <nsekhar@ti.com>
Fri, 9 Oct 2009 15:25:42 +0000 (20:55 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 25 Nov 2009 18:21:34 +0000 (10:21 -0800)
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>
arch/arm/mach-davinci/board-da830-evm.c

index ea9bc25e9288662311449db00e4bb42bbcb1cb05..dc169ec80a9f9f733f023b512baa476783935e8c 100644 (file)
@@ -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