aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/sungem.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-03-20 22:34:25 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 22:34:25 -0800
commite3968fc0f3db58e4c448ec20f66ce6da49d9bc5f (patch)
treeffb5d63fffa0b235ed202fb55674b1da2e7cffa4 /drivers/net/sungem.h
parent758df69ee01f7be99c2df5562ef278bab05623dd (diff)
[SUNGEM]: sem2mutex
Semaphore to mutexes 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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sungem.h')
-rw-r--r--drivers/net/sungem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sungem.h b/drivers/net/sungem.h
index 13006d759ad..89847215d00 100644
--- a/drivers/net/sungem.h
+++ b/drivers/net/sungem.h
@@ -980,15 +980,15 @@ struct gem {
int tx_new, tx_old;
unsigned int has_wol : 1; /* chip supports wake-on-lan */
- unsigned int asleep : 1; /* chip asleep, protected by pm_sem */
+ unsigned int asleep : 1; /* chip asleep, protected by pm_mutex */
unsigned int asleep_wol : 1; /* was asleep with WOL enabled */
- unsigned int opened : 1; /* driver opened, protected by pm_sem */
+ unsigned int opened : 1; /* driver opened, protected by pm_mutex */
unsigned int running : 1; /* chip running, protected by lock */
/* cell enable count, protected by lock */
int cell_enabled;
- struct semaphore pm_sem;
+ struct mutex pm_mutex;
u32 msg_enable;
u32 status;