#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>
-#include <asm/io.h>
+#include <linux/io.h>
#define VERSION "arcnet: COM20020 PCMCIA support loaded.\n"
int count;
netdev_dbg(dev, "register dump:\n");
- for (count = ioaddr; count < ioaddr + 16; count++)
- {
+ for (count = ioaddr; count < ioaddr + 16; count++) {
if (!(count % 16))
pr_cont("%04X:", count);
pr_cont(" %02X", inb(count));
outb((count >> 8) | RDDATAflag | AUTOINCflag, _ADDR_HI);
outb(count & 0xff, _ADDR_LO);
- for (count = 0; count < 256 + 32; count++)
- {
+ for (count = 0; count < 256 + 32; count++) {
if (!(count % 16))
pr_cont("%04X:", count);
unregister_netdev(dev);
- /*
- * this is necessary because we register our IRQ separately
+ /* this is necessary because we register our IRQ separately
* from card services.
*/
if (dev->irq)
/* Unlink device structure, free bits */
dev_dbg(&link->dev, "unlinking...\n");
- if (link->priv)
- {
+ if (link->priv) {
dev = info->dev;
- if (dev)
- {
+ if (dev) {
dev_dbg(&link->dev, "kfree...\n");
free_netdev(dev);
}
i = -ENODEV;
link->io_lines = 16;
- if (!link->resource[0]->start)
- {
- for (ioaddr = 0x100; ioaddr < 0x400; ioaddr += 0x10)
- {
+ if (!link->resource[0]->start) {
+ for (ioaddr = 0x100; ioaddr < 0x400; ioaddr += 0x10) {
link->resource[0]->start = ioaddr;
i = pcmcia_request_io(link);
if (i == 0)
break;
}
- }
- else
+ } else {
i = pcmcia_request_io(link);
+ }
- if (i != 0)
- {
+ if (i != 0) {
dev_dbg(&link->dev, "requestIO failed totally!\n");
goto failed;
}
dev_dbg(&link->dev, "request IRQ %d\n",
link->irq);
- if (!link->irq)
- {
+ if (!link->irq) {
dev_dbg(&link->dev, "requestIRQ failed totally!\n");
goto failed;
}
if (ret)
goto failed;
- if (com20020_check(dev))
- {
+ if (com20020_check(dev)) {
regdump(dev);
goto failed;
}