From patchwork Fri Oct 9 15:25:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 52750 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n99FT7qL025750 for ; Fri, 9 Oct 2009 15:29:07 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n99FPpIS032707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Oct 2009 10:25:52 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n99FPoJN026646; Fri, 9 Oct 2009 10:25:50 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 4472780627; Fri, 9 Oct 2009 10:25:50 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dbdp31.itg.ti.com (dbdp31.itg.ti.com [172.24.170.98]) by linux.omap.com (Postfix) with ESMTP id 3257B80626 for ; Fri, 9 Oct 2009 10:25:47 -0500 (CDT) Received: from psplinux051.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n99FPiR3009915; Fri, 9 Oct 2009 20:55:45 +0530 (IST) Received: from psplinux051.india.ti.com (localhost [127.0.0.1]) by psplinux051.india.ti.com (8.13.1/8.13.1) with ESMTP id n99FPiIr012137; Fri, 9 Oct 2009 20:55:44 +0530 Received: (from a0875516@localhost) by psplinux051.india.ti.com (8.13.1/8.13.1/Submit) id n99FPh1j012132; Fri, 9 Oct 2009 20:55:43 +0530 From: Sekhar Nori To: davinci-linux-open-source@linux.davincidsp.com Date: Fri, 9 Oct 2009 20:55:42 +0530 Message-Id: <1255101943-12092-1-git-send-email-nsekhar@ti.com> X-Mailer: git-send-email 1.6.2.4 Cc: Subject: [PATCH 1/2] davinci: DA830/OMAP-L137 EVM: fix warning with default config X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index f3c4b4b..95928f2 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -368,12 +368,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. */ @@ -466,10 +460,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