diff options
author | Ingo Molnar <mingo@elte.hu> | 2005-09-09 16:10:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:48 -0400 |
commit | a9f6a0dd54efea2a5d57a27e6c232f9197c25154 (patch) | |
tree | 1df64545ed43cd23d32201b2f2077c9325dc6ba0 /drivers | |
parent | 8d06afab73a75f40ae2864e6c296356bab1ab473 (diff) |
[PATCH] more SPIN_LOCK_UNLOCKED -> DEFINE_SPINLOCK conversions
This converts the final 20 DEFINE_SPINLOCK holdouts. (another 580 places
are already using DEFINE_SPINLOCK). Build tested on x86.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 | ||||
-rw-r--r-- | drivers/parisc/iosapic.c | 2 | ||||
-rw-r--r-- | drivers/scsi/ch.c | 2 | ||||
-rw-r--r-- | drivers/video/geode/display_gx1.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 7c9dbc8c9423..25c9a99c377b 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -94,7 +94,7 @@ static char mv643xx_driver_version[] = "1.0"; | |||
94 | static void __iomem *mv643xx_eth_shared_base; | 94 | static void __iomem *mv643xx_eth_shared_base; |
95 | 95 | ||
96 | /* used to protect MV643XX_ETH_SMI_REG, which is shared across ports */ | 96 | /* used to protect MV643XX_ETH_SMI_REG, which is shared across ports */ |
97 | static spinlock_t mv643xx_eth_phy_lock = SPIN_LOCK_UNLOCKED; | 97 | static DEFINE_SPINLOCK(mv643xx_eth_phy_lock); |
98 | 98 | ||
99 | static inline u32 mv_read(int offset) | 99 | static inline u32 mv_read(int offset) |
100 | { | 100 | { |
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index 91df0bf181dd..7a57c1b8373f 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c | |||
@@ -215,7 +215,7 @@ static inline void iosapic_write(void __iomem *iosapic, unsigned int reg, u32 va | |||
215 | #define IOSAPIC_IRDT_ID_EID_SHIFT 0x10 | 215 | #define IOSAPIC_IRDT_ID_EID_SHIFT 0x10 |
216 | 216 | ||
217 | 217 | ||
218 | static spinlock_t iosapic_lock = SPIN_LOCK_UNLOCKED; | 218 | static DEFINE_SPINLOCK(iosapic_lock); |
219 | 219 | ||
220 | static inline void iosapic_eoi(void __iomem *addr, unsigned int data) | 220 | static inline void iosapic_eoi(void __iomem *addr, unsigned int data) |
221 | { | 221 | { |
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index bd0e1b6be1ea..13ecd0c47404 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c | |||
@@ -116,7 +116,7 @@ typedef struct { | |||
116 | } scsi_changer; | 116 | } scsi_changer; |
117 | 117 | ||
118 | static LIST_HEAD(ch_devlist); | 118 | static LIST_HEAD(ch_devlist); |
119 | static spinlock_t ch_devlist_lock = SPIN_LOCK_UNLOCKED; | 119 | static DEFINE_SPINLOCK(ch_devlist_lock); |
120 | static int ch_devcount; | 120 | static int ch_devcount; |
121 | 121 | ||
122 | static struct scsi_driver ch_template = | 122 | static struct scsi_driver ch_template = |
diff --git a/drivers/video/geode/display_gx1.c b/drivers/video/geode/display_gx1.c index f4983879fcc4..926d53eeb549 100644 --- a/drivers/video/geode/display_gx1.c +++ b/drivers/video/geode/display_gx1.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "geodefb.h" | 22 | #include "geodefb.h" |
23 | #include "display_gx1.h" | 23 | #include "display_gx1.h" |
24 | 24 | ||
25 | static spinlock_t gx1_conf_reg_lock = SPIN_LOCK_UNLOCKED; | 25 | static DEFINE_SPINLOCK(gx1_conf_reg_lock); |
26 | 26 | ||
27 | static u8 gx1_read_conf_reg(u8 reg) | 27 | static u8 gx1_read_conf_reg(u8 reg) |
28 | { | 28 | { |