diff mbox

sh: mach-ecovec24: modify MTD mask_flags typo

Message ID uhbumqaj9.wl%morimoto.kuninori@renesas.com (mailing list archive)
State Superseded
Headers show

Commit Message

Kuninori Morimoto Sept. 29, 2009, 11:02 a.m. UTC
This patch modify bug which can erase boot loader image area.

Tested-by: Yusuke Goda <goda.yusuke@renesas.com>
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
---
 arch/sh/boards/mach-ecovec24/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Jean-Christophe PLAGNIOL-VILLARD Sept. 29, 2009, 4:25 p.m. UTC | #1
On 20:02 Tue 29 Sep     , Kuninori Morimoto wrote:
> This patch modify bug which can erase boot loader image area.
IIC you do not want to be able to modify the boot loader area
why?
and why do you allow to write it?

Best Regards,
J.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 5f9881e..ae2cc0d 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -70,7 +70,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_CAP_RAM,
 	}, {
 		.name = "free-area",
 		.offset = MTDPART_OFS_APPEND,