diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-26 04:37:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:55 -0500 |
commit | 14cc3e2b633bb64063698980974df4535368e98f (patch) | |
tree | d542c9db7376de199d640b8e34d5630460b217b5 /drivers/net/wan/dscc4.c | |
parent | 353ab6e97b8f209dbecc9f650f1f84e3da2a7bb1 (diff) |
[PATCH] sem2mutex: misc static one-file mutexes
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jens Axboe <axboe@suse.de>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Cc: Greg KH <greg@kroah.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wan/dscc4.c')
-rw-r--r-- | drivers/net/wan/dscc4.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c index 1ff5de076d21..4505540e3c59 100644 --- a/drivers/net/wan/dscc4.c +++ b/drivers/net/wan/dscc4.c | |||
@@ -105,6 +105,7 @@ | |||
105 | #include <linux/delay.h> | 105 | #include <linux/delay.h> |
106 | #include <net/syncppp.h> | 106 | #include <net/syncppp.h> |
107 | #include <linux/hdlc.h> | 107 | #include <linux/hdlc.h> |
108 | #include <linux/mutex.h> | ||
108 | 109 | ||
109 | /* Version */ | 110 | /* Version */ |
110 | static const char version[] = "$Id: dscc4.c,v 1.173 2003/09/20 23:55:34 romieu Exp $ for Linux\n"; | 111 | static const char version[] = "$Id: dscc4.c,v 1.173 2003/09/20 23:55:34 romieu Exp $ for Linux\n"; |
@@ -112,7 +113,7 @@ static int debug; | |||
112 | static int quartz; | 113 | static int quartz; |
113 | 114 | ||
114 | #ifdef CONFIG_DSCC4_PCI_RST | 115 | #ifdef CONFIG_DSCC4_PCI_RST |
115 | static DECLARE_MUTEX(dscc4_sem); | 116 | static DEFINE_MUTEX(dscc4_mutex); |
116 | static u32 dscc4_pci_config_store[16]; | 117 | static u32 dscc4_pci_config_store[16]; |
117 | #endif | 118 | #endif |
118 | 119 | ||
@@ -1018,7 +1019,7 @@ static void dscc4_pci_reset(struct pci_dev *pdev, void __iomem *ioaddr) | |||
1018 | { | 1019 | { |
1019 | int i; | 1020 | int i; |
1020 | 1021 | ||
1021 | down(&dscc4_sem); | 1022 | mutex_lock(&dscc4_mutex); |
1022 | for (i = 0; i < 16; i++) | 1023 | for (i = 0; i < 16; i++) |
1023 | pci_read_config_dword(pdev, i << 2, dscc4_pci_config_store + i); | 1024 | pci_read_config_dword(pdev, i << 2, dscc4_pci_config_store + i); |
1024 | 1025 | ||
@@ -1039,7 +1040,7 @@ static void dscc4_pci_reset(struct pci_dev *pdev, void __iomem *ioaddr) | |||
1039 | 1040 | ||
1040 | for (i = 0; i < 16; i++) | 1041 | for (i = 0; i < 16; i++) |
1041 | pci_write_config_dword(pdev, i << 2, dscc4_pci_config_store[i]); | 1042 | pci_write_config_dword(pdev, i << 2, dscc4_pci_config_store[i]); |
1042 | up(&dscc4_sem); | 1043 | mutex_unlock(&dscc4_mutex); |
1043 | } | 1044 | } |
1044 | #else | 1045 | #else |
1045 | #define dscc4_pci_reset(pdev,ioaddr) do {} while (0) | 1046 | #define dscc4_pci_reset(pdev,ioaddr) do {} while (0) |