aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/lib8390.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-06-12 19:14:22 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-12 19:14:22 -0400
commit030352a9c7715780b2c01033ae9afe56249bb7cc (patch)
treecc23683773d0d63712f4e6ea6824383f1d696e05 /drivers/net/lib8390.c
parente6e30add6bd8115af108de2a13ec82d997a55777 (diff)
parent0c1aa20fb87b796d904f4d89ad12e5a0c483127b (diff)
Merge branch 'davem-next' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/lib8390.c')
-rw-r--r--drivers/net/lib8390.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/lib8390.c b/drivers/net/lib8390.c
index ed495275b577..00d59ab2f8ac 100644
--- a/drivers/net/lib8390.c
+++ b/drivers/net/lib8390.c
@@ -553,6 +553,8 @@ static void __ei_poll(struct net_device *dev)
553static void ei_tx_err(struct net_device *dev) 553static void ei_tx_err(struct net_device *dev)
554{ 554{
555 unsigned long e8390_base = dev->base_addr; 555 unsigned long e8390_base = dev->base_addr;
556 /* ei_local is used on some platforms via the EI_SHIFT macro */
557 struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
556 unsigned char txsr = ei_inb_p(e8390_base+EN0_TSR); 558 unsigned char txsr = ei_inb_p(e8390_base+EN0_TSR);
557 unsigned char tx_was_aborted = txsr & (ENTSR_ABT+ENTSR_FU); 559 unsigned char tx_was_aborted = txsr & (ENTSR_ABT+ENTSR_FU);
558 560
@@ -815,6 +817,8 @@ static void ei_rx_overrun(struct net_device *dev)
815{ 817{
816 unsigned long e8390_base = dev->base_addr; 818 unsigned long e8390_base = dev->base_addr;
817 unsigned char was_txing, must_resend = 0; 819 unsigned char was_txing, must_resend = 0;
820 /* ei_local is used on some platforms via the EI_SHIFT macro */
821 struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
818 822
819 /* 823 /*
820 * Record whether a Tx was in progress and then issue the 824 * Record whether a Tx was in progress and then issue the