aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/mainstone-kernel/flash-unlock.patch
blob: 31f3f38e34a95ee36e98170d0753f54ff843eea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);