From patchwork Fri Mar 13 18:03:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 11832 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2DI3OoN005766 for ; Fri, 13 Mar 2009 18:03:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752482AbZCMSDt (ORCPT ); Fri, 13 Mar 2009 14:03:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752570AbZCMSDt (ORCPT ); Fri, 13 Mar 2009 14:03:49 -0400 Received: from mho-01-bos.mailhop.org ([63.208.196.178]:62076 "EHLO mho-01-bos.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752482AbZCMSDs (ORCPT ); Fri, 13 Mar 2009 14:03:48 -0400 Received: from c-69-181-40-92.hsd1.ca.comcast.net ([69.181.40.92] helo=[127.0.0.1]) by mho-01-bos.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1LiBjW-00046B-GQ; Fri, 13 Mar 2009 18:03:46 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 69.181.40.92 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19DvjS23S3jZ0dTAlr2RkRh Subject: [PATCH 2/4] Bugfix to RX51 flash support: this board has no NOR flash, To: linux-omap@vger.kernel.org From: Tony Lindgren Cc: David Brownell , Lauri Leukkunen Date: Fri, 13 Mar 2009 11:03:47 -0700 Message-ID: <20090313180347.1548.57426.stgit@localhost> In-Reply-To: <20090313180123.1548.1188.stgit@localhost> References: <20090313180123.1548.1188.stgit@localhost> User-Agent: StGit/0.14.3.343.g0584 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: David Brownell Signed-off-by: David Brownell Acked-by: Lauri Leukkunen --- arch/arm/mach-omap2/board-rx51-flash.c | 37 +------------------------------- 1 files changed, 1 insertions(+), 36 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/board-rx51-flash.c b/arch/arm/mach-omap2/board-rx51-flash.c index cd030a6..39b0659 100644 --- a/arch/arm/mach-omap2/board-rx51-flash.c +++ b/arch/arm/mach-omap2/board-rx51-flash.c @@ -10,46 +10,12 @@ #include #include -#include -#include -#include -#include - -#include +#include #include "mmc-twl4030.h" -#define RX51_FLASH_CS 0 - -extern struct mtd_partition n800_partitions[ONENAND_MAX_PARTITIONS]; -extern int n800_onenand_setup(void __iomem *onenand_base, int freq); extern void __init n800_flash_init(void); -static struct flash_platform_data rx51_flash_data = { - .map_name = "cfi_probe", - .width = 2, - .parts = n800_partitions, - .nr_parts = ARRAY_SIZE(n800_partitions), -}; - -static struct resource rx51_flash_resource = { - .flags = IORESOURCE_MEM, -}; - -static struct platform_device rx51_flash_device = { - .name = "omapflash", - .id = 0, - .dev = { - .platform_data = &rx51_flash_data, - }, - .num_resources = 1, - .resource = &rx51_flash_resource, -}; - -static struct platform_device *rx51_flash_devices[] = { - &rx51_flash_device, -}; - static struct twl4030_hsmmc_info mmc[] __initdata = { { .name = "external", @@ -71,7 +37,6 @@ static struct twl4030_hsmmc_info mmc[] __initdata = { void __init rx51_flash_init(void) { - platform_add_devices(rx51_flash_devices, ARRAY_SIZE(rx51_flash_devices)); n800_flash_init(); twl4030_mmc_init(mmc); }