From patchwork Wed Sep 30 00:50:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 50642 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 n8U0obDh029412 for ; Wed, 30 Sep 2009 00:50:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378AbZI3Auc (ORCPT ); Tue, 29 Sep 2009 20:50:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752212AbZI3Auc (ORCPT ); Tue, 29 Sep 2009 20:50:32 -0400 Received: from mail.renesas.com ([202.234.163.13]:53046 "EHLO mail03.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752047AbZI3Aub (ORCPT ); Tue, 29 Sep 2009 20:50:31 -0400 X-AuditID: ac140386-0000000600003037-65-4ac2ab570bab Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail03.idc.renesas.com (sendmail) with ESMTP id n8U0oViV012115; Wed, 30 Sep 2009 09:50:31 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id n8U0oWAj025214; Wed, 30 Sep 2009 09:50:32 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id n8U0oUk2013344; Wed, 30 Sep 2009 09:50:30 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KQR00IV9EC6B9@ims05.idc.renesas.com>; Wed, 30 Sep 2009 09:50:30 +0900 (JST) Date: Wed, 30 Sep 2009 09:50:30 +0900 From: Kuninori Morimoto Subject: [PATCH v2] sh: mach-ecovec24: modify 1st MTD area to read only To: Paul Mundt Cc: SH-Linux , RSO goda , Jean-Christophe PLAGNIOL-VILLARD Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1 (i386-mingw-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/3.00-dev (KIKU) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 52912a6..0fb665d 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c @@ -71,7 +71,7 @@ static struct mtd_partition nor_flash_partitions[] = { .name = "boot loader", .offset = 0, .size = (5 * 1024 * 1024), - .mask_flags = MTD_CAP_ROM, + .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "free-area", .offset = MTDPART_OFS_APPEND,