[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>
This commit is contained in:
parent
9202f32558
commit
1083cfe112
1 changed files with 5 additions and 5 deletions
|
@ -194,9 +194,9 @@ static void enqueue(struct list_head *node, struct list_head *lh)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(ugeth_lock, flags);
|
spin_lock_irqsave(&ugeth_lock, flags);
|
||||||
list_add_tail(node, lh);
|
list_add_tail(node, lh);
|
||||||
spin_unlock_irqrestore(ugeth_lock, flags);
|
spin_unlock_irqrestore(&ugeth_lock, flags);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_UGETH_FILTERING */
|
#endif /* CONFIG_UGETH_FILTERING */
|
||||||
|
|
||||||
|
@ -204,14 +204,14 @@ static struct list_head *dequeue(struct list_head *lh)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(ugeth_lock, flags);
|
spin_lock_irqsave(&ugeth_lock, flags);
|
||||||
if (!list_empty(lh)) {
|
if (!list_empty(lh)) {
|
||||||
struct list_head *node = lh->next;
|
struct list_head *node = lh->next;
|
||||||
list_del(node);
|
list_del(node);
|
||||||
spin_unlock_irqrestore(ugeth_lock, flags);
|
spin_unlock_irqrestore(&ugeth_lock, flags);
|
||||||
return node;
|
return node;
|
||||||
} else {
|
} else {
|
||||||
spin_unlock_irqrestore(ugeth_lock, flags);
|
spin_unlock_irqrestore(&ugeth_lock, flags);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue