Skip to content

Commit

Permalink
[PATCH] ucc_geth: compilation error fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Scott Wood authored and Jeff Garzik committed Dec 11, 2006
1 parent 9202f32 commit 1083cfe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,24 @@ 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 */

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;
}
}
Expand Down

0 comments on commit 1083cfe

Please sign in to comment.