aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/mainstone-kernel/flash-unlock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/linux/mainstone-kernel/flash-unlock.patch')
-rw-r--r--recipes/linux/mainstone-kernel/flash-unlock.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/linux/mainstone-kernel/flash-unlock.patch b/recipes/linux/mainstone-kernel/flash-unlock.patch
new file mode 100644
index 0000000000..31f3f38e34
--- /dev/null
+++ b/recipes/linux/mainstone-kernel/flash-unlock.patch
@@ -0,0 +1,14 @@
+--- drivers/mtd/maps/mainstone-flash.c~ 2008-01-05 01:15:54.000000000 +0100
++++ drivers/mtd/maps/mainstone-flash.c 2008-01-05 01:15:54.000000000 +0100
+@@ -125,6 +125,11 @@
+ continue;
+ }
+ mymtds[i]->owner = THIS_MODULE;
++
++ /* Unlock the flash device. */
++ if (mymtds[i]->unlock)
++ mymtds[i]->unlock(mymtds[i], 0, mymtds[i]->size);
++
+
+ ret = parse_mtd_partitions(mymtds[i], probes,
+ &parsed_parts[i], 0);