Commit 6cbd01f1 authored by Matt Mackall's avatar Matt Mackall Committed by Stephen Hemminger

[PATCH] netpoll: fix compilation with CONFIG_NETPOLL_RX

Fix compilation without CONFIG_NETPOLL_RX
parent e8bdd5df
......@@ -588,7 +588,9 @@ int netpoll_setup(struct netpoll *np)
if(np->rx_hook) {
unsigned long flags;
#ifdef CONFIG_NETPOLL_RX
np->dev->netpoll_rx = 1;
#endif
spin_lock_irqsave(&rx_list_lock, flags);
list_add(&np->rx_list, &rx_list);
......@@ -608,7 +610,9 @@ void netpoll_cleanup(struct netpoll *np)
spin_lock_irqsave(&rx_list_lock, flags);
list_del(&np->rx_list);
#ifdef CONFIG_NETPOLL_RX
np->dev->netpoll_rx = 0;
#endif
spin_unlock_irqrestore(&rx_list_lock, flags);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment