X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2F82596.c;h=c835712edef9b509e94e5958f31bf9929cb64856;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=92cf5e0d756ff95dbf62bce856fb16f6ace1f66a;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/net/82596.c b/drivers/net/82596.c index 92cf5e0d7..c835712ed 100644 --- a/drivers/net/82596.c +++ b/drivers/net/82596.c @@ -58,11 +58,12 @@ #include #include #include -#include static char version[] __initdata = "82596.c $Revision: 1.5 $\n"; +#define DRV_NAME "82596" + /* DEBUG flags */ @@ -618,7 +619,7 @@ static int init_i596_mem(struct net_device *dev) #endif unsigned long flags; - MPU_PORT(dev, PORT_RESET, 0); + MPU_PORT(dev, PORT_RESET, NULL); udelay(100); /* Wait 100us - seems to help */ @@ -759,7 +760,7 @@ static int init_i596_mem(struct net_device *dev) failed: printk(KERN_CRIT "%s: Failed to initialise 82596\n", dev->name); - MPU_PORT(dev, PORT_RESET, 0); + MPU_PORT(dev, PORT_RESET, NULL); return -1; } @@ -1191,7 +1192,7 @@ struct net_device * __init i82596_probe(int unit) /* this is easy the ethernet interface can only be at 0x300 */ /* first check nothing is already registered here */ - if (!request_region(ioaddr, I596_TOTAL_SIZE, dev->name)) { + if (!request_region(ioaddr, I596_TOTAL_SIZE, DRV_NAME)) { printk(KERN_ERR "82596: IO address 0x%04x in use\n", ioaddr); err = -EBUSY; goto out;