mtd: change struct flchip_shared spinlock locking into mutex
[linux-2.6.git] / include / linux / mtd / flashchip.h
index f43e9b4..23cc10f 100644 (file)
@@ -92,7 +92,7 @@ struct flchip {
 /* This is used to handle contention on write/erase operations
    between partitions of the same physical chip. */
 struct flchip_shared {
-       spinlock_t lock;
+       struct mutex lock;
        struct flchip *writing;
        struct flchip *erasing;
 };