From: Yusuke Goda Date: Mon, 8 Nov 2010 05:45:09 +0000 (+0000) Subject: ARM: mach-shmobile: ap4evb: Mark NOR boot loader partitions read-only. X-Git-Tag: v2.6.37-rc2~11^3~2^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2e351ec61c35fac01ed1fb1ce35c183bf85e780c;p=~emulex%2Finfiniband.git ARM: mach-shmobile: ap4evb: Mark NOR boot loader partitions read-only. This makes the loader and bootenv partitions read-only under MTD for the on-board NOR flash. Signed-off-by: Yusuke Goda Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt --- diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 32d9e2816e5..63c2fcac8e1 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -163,11 +163,13 @@ static struct mtd_partition nor_flash_partitions[] = { .name = "loader", .offset = 0x00000000, .size = 512 * 1024, + .mask_flags = MTD_WRITEABLE, }, { .name = "bootenv", .offset = MTDPART_OFS_APPEND, .size = 512 * 1024, + .mask_flags = MTD_WRITEABLE, }, { .name = "kernel_ro",