mtd/drivers/mtd/maps cstm_mips_ixx.c, 1.12, 1.13 dilnetpc.c, 1.17, 1.18 elan-104nc.c, 1.25, 1.26 ipaq-flash.c, 1.3, 1.4 octagon-5066.c, 1.26, 1.27 sbc_gxx.c, 1.33, 1.34 vmax301.c, 1.30, 1.31

gleixner at infradead.org gleixner at infradead.org
Wed Jan 12 17:34:38 EST 2005


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv14233/drivers/mtd/maps

Modified Files:
	cstm_mips_ixx.c dilnetpc.c elan-104nc.c ipaq-flash.c 
	octagon-5066.c sbc_gxx.c vmax301.c 
Log Message:
Lock initializer update

Index: cstm_mips_ixx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/cstm_mips_ixx.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cstm_mips_ixx.c	4 Nov 2004 13:24:14 -0000	1.12
+++ cstm_mips_ixx.c	12 Jan 2005 22:34:35 -0000	1.13
@@ -58,7 +58,7 @@
 #if defined(CONFIG_MIPS_ITE8172) || defined(CONFIG_MIPS_IVR)
 void cstm_mips_ixx_set_vpp(struct map_info *map,int vpp)
 {
-	static spinlock_t vpp_lock = SPIN_LOCK_UNLOCKED;
+	static DEFINE_SPINLOCK(vpp_lock);
 	static int vpp_count = 0;
 	unsigned long flags;
 

Index: dilnetpc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/dilnetpc.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- dilnetpc.c	28 Nov 2004 09:40:39 -0000	1.17
+++ dilnetpc.c	12 Jan 2005 22:34:35 -0000	1.18
@@ -197,7 +197,7 @@
 ************************************************************
 */
 
-static spinlock_t dnpc_spin   = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dnpc_spin);
 static int        vpp_counter = 0;
 /*
 ** This is what has to be done for the DNP board ..

Index: elan-104nc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/elan-104nc.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- elan-104nc.c	28 Nov 2004 09:40:39 -0000	1.25
+++ elan-104nc.c	12 Jan 2005 22:34:35 -0000	1.26
@@ -54,7 +54,7 @@
 
 static volatile int page_in_window = -1; // Current page in window.
 static void __iomem *iomapadr;
-static spinlock_t elan_104nc_spin = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(elan_104nc_spin);
 
 /* partition_info gives details on the logical partitions that the split the 
  * single flash device into. If the size if zero we use up to the end of the

Index: ipaq-flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ipaq-flash.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ipaq-flash.c	4 Nov 2004 13:24:15 -0000	1.3
+++ ipaq-flash.c	12 Jan 2005 22:34:35 -0000	1.4
@@ -143,7 +143,7 @@
 };
 #endif
 
-static spinlock_t ipaq_vpp_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(ipaq_vpp_lock);
 
 static void h3xxx_set_vpp(struct map_info *map, int vpp)
 {

Index: octagon-5066.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/octagon-5066.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- octagon-5066.c	12 Jul 2004 22:38:29 -0000	1.26
+++ octagon-5066.c	12 Jan 2005 22:34:35 -0000	1.27
@@ -41,7 +41,7 @@
 
 static volatile char page_n_dev = 0;
 static unsigned long iomapadr;
-static spinlock_t oct5066_spin = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(oct5066_spin);
 
 /*
  * We use map_priv_1 to identify which device we are.

Index: sbc_gxx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sbc_gxx.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- sbc_gxx.c	28 Nov 2004 09:40:40 -0000	1.33
+++ sbc_gxx.c	12 Jan 2005 22:34:35 -0000	1.34
@@ -85,7 +85,7 @@
 
 static volatile int page_in_window = -1; // Current page in window.
 static void __iomem *iomapadr;
-static spinlock_t sbc_gxx_spin = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(sbc_gxx_spin);
 
 /* partition_info gives details on the logical partitions that the split the 
  * single flash device into. If the size if zero we use up to the end of the

Index: vmax301.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/vmax301.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- vmax301.c	12 Jul 2004 22:38:29 -0000	1.30
+++ vmax301.c	12 Jan 2005 22:34:35 -0000	1.31
@@ -38,7 +38,7 @@
    the extra indirection from having one of the map->map_priv 
    fields pointing to yet another private struct.
 */
-static spinlock_t vmax301_spin = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(vmax301_spin);
 
 static void __vmax301_page(struct map_info *map, unsigned long page)
 {





More information about the linux-mtd-cvs mailing list