diff options
Diffstat (limited to 'drivers/net/tokenring')
-rw-r--r-- | drivers/net/tokenring/3c359.c | 6 | ||||
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 3 | ||||
-rw-r--r-- | drivers/net/tokenring/madgemc.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c index ff32befd8443..b6162fe2348e 100644 --- a/drivers/net/tokenring/3c359.c +++ b/drivers/net/tokenring/3c359.c | |||
@@ -304,7 +304,7 @@ static int __devinit xl_probe(struct pci_dev *pdev, | |||
304 | 304 | ||
305 | if ((i = pci_request_regions(pdev,"3c359"))) { | 305 | if ((i = pci_request_regions(pdev,"3c359"))) { |
306 | return i ; | 306 | return i ; |
307 | } ; | 307 | } |
308 | 308 | ||
309 | /* | 309 | /* |
310 | * Allowing init_trdev to allocate the private data will align | 310 | * Allowing init_trdev to allocate the private data will align |
@@ -1773,7 +1773,9 @@ static void xl_wait_misr_flags(struct net_device *dev) | |||
1773 | if (readb(xl_mmio + MMIO_MACDATA) != 0) { /* Misr not clear */ | 1773 | if (readb(xl_mmio + MMIO_MACDATA) != 0) { /* Misr not clear */ |
1774 | for (i=0; i<6; i++) { | 1774 | for (i=0; i<6; i++) { |
1775 | writel(MEM_BYTE_READ | 0xDFFE0 | i, xl_mmio + MMIO_MAC_ACCESS_CMD) ; | 1775 | writel(MEM_BYTE_READ | 0xDFFE0 | i, xl_mmio + MMIO_MAC_ACCESS_CMD) ; |
1776 | while (readb(xl_mmio + MMIO_MACDATA) != 0 ) {} ; /* Empty Loop */ | 1776 | while (readb(xl_mmio + MMIO_MACDATA) != 0) { |
1777 | ; /* Empty Loop */ | ||
1778 | } | ||
1777 | } | 1779 | } |
1778 | } | 1780 | } |
1779 | 1781 | ||
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 4786497de03e..e257a00fe14b 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -123,6 +123,7 @@ in the event that chatty debug messages are desired - jjs 12/30/98 */ | |||
123 | /* some 95 OS send many non UI frame; this allow removing the warning */ | 123 | /* some 95 OS send many non UI frame; this allow removing the warning */ |
124 | #define TR_FILTERNONUI 1 | 124 | #define TR_FILTERNONUI 1 |
125 | 125 | ||
126 | #include <linux/interrupt.h> | ||
126 | #include <linux/ioport.h> | 127 | #include <linux/ioport.h> |
127 | #include <linux/netdevice.h> | 128 | #include <linux/netdevice.h> |
128 | #include <linux/ip.h> | 129 | #include <linux/ip.h> |
@@ -177,7 +178,7 @@ static char __devinit *adapter_def(char type) | |||
177 | case 0xD: return "16/4 Adapter/A (short) | 16/4 ISA-16 Adapter"; | 178 | case 0xD: return "16/4 Adapter/A (short) | 16/4 ISA-16 Adapter"; |
178 | case 0xC: return "Auto 16/4 Adapter"; | 179 | case 0xC: return "Auto 16/4 Adapter"; |
179 | default: return "adapter (unknown type)"; | 180 | default: return "adapter (unknown type)"; |
180 | }; | 181 | } |
181 | }; | 182 | }; |
182 | 183 | ||
183 | #define TRC_INIT 0x01 /* Trace initialization & PROBEs */ | 184 | #define TRC_INIT 0x01 /* Trace initialization & PROBEs */ |
diff --git a/drivers/net/tokenring/madgemc.c b/drivers/net/tokenring/madgemc.c index 2bedc0ace812..6153cfd696b6 100644 --- a/drivers/net/tokenring/madgemc.c +++ b/drivers/net/tokenring/madgemc.c | |||
@@ -418,7 +418,7 @@ static irqreturn_t madgemc_interrupt(int irq, void *dev_id) | |||
418 | return IRQ_NONE; | 418 | return IRQ_NONE; |
419 | } | 419 | } |
420 | 420 | ||
421 | dev = (struct net_device *)dev_id; | 421 | dev = dev_id; |
422 | 422 | ||
423 | /* Make sure its really us. -- the Madge way */ | 423 | /* Make sure its really us. -- the Madge way */ |
424 | pending = inb(dev->base_addr + MC_CONTROL_REG0); | 424 | pending = inb(dev->base_addr + MC_CONTROL_REG0); |