diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-03-20 11:58:09 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-03-20 11:58:09 -0500 |
| commit | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (patch) | |
| tree | 5886a08bfa1132058b06074f4666a36dc5ddd2a1 /drivers/misc/ibmasm/ibmasm.h | |
| parent | 88274815f7477dc7550439413ab87c5ce4c5a623 (diff) | |
| parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/misc/ibmasm/ibmasm.h')
| -rw-r--r-- | drivers/misc/ibmasm/ibmasm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/misc/ibmasm/ibmasm.h b/drivers/misc/ibmasm/ibmasm.h index 1cef2387fa65..6aba41954448 100644 --- a/drivers/misc/ibmasm/ibmasm.h +++ b/drivers/misc/ibmasm/ibmasm.h | |||
| @@ -101,15 +101,16 @@ struct command { | |||
| 101 | static inline void command_put(struct command *cmd) | 101 | static inline void command_put(struct command *cmd) |
| 102 | { | 102 | { |
| 103 | unsigned long flags; | 103 | unsigned long flags; |
| 104 | spinlock_t *lock = cmd->lock; | ||
| 104 | 105 | ||
| 105 | spin_lock_irqsave(cmd->lock, flags); | 106 | spin_lock_irqsave(lock, flags); |
| 106 | kobject_put(&cmd->kobj); | 107 | kobject_put(&cmd->kobj); |
| 107 | spin_unlock_irqrestore(cmd->lock, flags); | 108 | spin_unlock_irqrestore(lock, flags); |
| 108 | } | 109 | } |
| 109 | 110 | ||
| 110 | static inline void command_get(struct command *cmd) | 111 | static inline void command_get(struct command *cmd) |
| 111 | { | 112 | { |
| 112 | kobject_get(&cmd->kobj); | 113 | kobject_get(&cmd->kobj); |
| 113 | } | 114 | } |
| 114 | 115 | ||
| 115 | 116 | ||
