diff options
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index 23fab14f1637..b44292abd9f7 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c | |||
@@ -9,7 +9,7 @@ | |||
9 | * | 9 | * |
10 | * mtdparts=<mtddef>[;<mtddef] | 10 | * mtdparts=<mtddef>[;<mtddef] |
11 | * <mtddef> := <mtd-id>:<partdef>[,<partdef>] | 11 | * <mtddef> := <mtd-id>:<partdef>[,<partdef>] |
12 | * <partdef> := <size>[@offset][<name>][ro] | 12 | * <partdef> := <size>[@offset][<name>][ro][lk] |
13 | * <mtd-id> := unique name used in mapping driver/device (mtd->name) | 13 | * <mtd-id> := unique name used in mapping driver/device (mtd->name) |
14 | * <size> := standard linux memsize OR "-" to denote all remaining space | 14 | * <size> := standard linux memsize OR "-" to denote all remaining space |
15 | * <name> := '(' NAME ')' | 15 | * <name> := '(' NAME ')' |
@@ -143,6 +143,13 @@ static struct mtd_partition * newpart(char *s, | |||
143 | s += 2; | 143 | s += 2; |
144 | } | 144 | } |
145 | 145 | ||
146 | /* if lk is found do NOT unlock the MTD partition*/ | ||
147 | if (strncmp(s, "lk", 2) == 0) | ||
148 | { | ||
149 | mask_flags |= MTD_POWERUP_LOCK; | ||
150 | s += 2; | ||
151 | } | ||
152 | |||
146 | /* test if more partitions are following */ | 153 | /* test if more partitions are following */ |
147 | if (*s == ',') | 154 | if (*s == ',') |
148 | { | 155 | { |