aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2006-12-07 13:31:07 -0600
committerJeff Garzik <jeff@garzik.org>2006-12-11 09:31:28 -0500
commit1083cfe11285816fb2e2e36aad097f1c3b6db915 (patch)
tree7ceb21af5a3af13ab3b14597f8a0ea45e845dce8 /drivers/net/ucc_geth.c
parent9202f32558601c2c99ddc438eb3218131d00d413 (diff)
downloadkernel_samsung_smdk4412-1083cfe11285816fb2e2e36aad097f1c3b6db915.zip
kernel_samsung_smdk4412-1083cfe11285816fb2e2e36aad097f1c3b6db915.tar.gz
kernel_samsung_smdk4412-1083cfe11285816fb2e2e36aad097f1c3b6db915.tar.bz2
[PATCH] ucc_geth: compilation error fixes
Fix compilation failures when building the ucc_geth driver with spinlock debugging. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 1f05511..62d979b 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -194,9 +194,9 @@ static void enqueue(struct list_head *node, struct list_head *lh)
{
unsigned long flags;
- spin_lock_irqsave(ugeth_lock, flags);
+ spin_lock_irqsave(&ugeth_lock, flags);
list_add_tail(node, lh);
- spin_unlock_irqrestore(ugeth_lock, flags);
+ spin_unlock_irqrestore(&ugeth_lock, flags);
}
#endif /* CONFIG_UGETH_FILTERING */
@@ -204,14 +204,14 @@ static struct list_head *dequeue(struct list_head *lh)
{
unsigned long flags;
- spin_lock_irqsave(ugeth_lock, flags);
+ spin_lock_irqsave(&ugeth_lock, flags);
if (!list_empty(lh)) {
struct list_head *node = lh->next;
list_del(node);
- spin_unlock_irqrestore(ugeth_lock, flags);
+ spin_unlock_irqrestore(&ugeth_lock, flags);
return node;
} else {
- spin_unlock_irqrestore(ugeth_lock, flags);
+ spin_unlock_irqrestore(&ugeth_lock, flags);
return NULL;
}
}