if (check_region(WakeupPort, 2)==0) {  
if (request_region(WakeupPort, 2, "eepro wakeup")) { 
static int __init do_eepro_probe(struct net_device *dev){	int i;	int base_addr = dev->base_addr;	int irq = dev->irq;	SET_MODULE_OWNER(dev);#ifdef PnPWakeup	/* XXXX for multiple cards should this only be run once? */	/* Wakeup: */	#define WakeupPort 0x279	#define WakeupSeq    {0x6A, 0xB5, 0xDA, 0xED, 0xF6, 0xFB, 0x7D, 0xBE,\	                      0xDF, 0x6F, 0x37, 0x1B, 0x0D, 0x86, 0xC3, 0x61,\	                      0xB0, 0x58, 0x2C, 0x16, 0x8B, 0x45, 0xA2, 0xD1,\	                      0xE8, 0x74, 0x3A, 0x9D, 0xCE, 0xE7, 0x73, 0x43}	{		unsigned short int WS[32]=WakeupSeq;		if (check_region(WakeupPort, 2)==0) {			if (net_debug>5)				printk(KERN_DEBUG "Waking UP\n");			outb_p(0,WakeupPort);			outb_p(0,WakeupPort);			for (i=0; i<32; i++) {				outb_p(WS[i],WakeupPort);				if (net_debug>5) printk(KERN_DEBUG ": %#x ",WS[i]);			}		} else printk(KERN_WARNING "Checkregion Failed!\n");	}#endif	if (base_addr > 0x1ff)		/* Check a single specified location. */		return eepro_probe1(dev, 0);	else if (base_addr != 0)	/* Don't probe at all. */		return -ENXIO;	for (i = 0; eepro_portlist[i]; i++) {		dev->base_addr = eepro_portlist[i];		dev->irq = irq;		if (eepro_probe1(dev, 1) == 0)			return 0;	}	return -ENODEV;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/d61780c0d384939ef31c46b47442854d5def4623/eepro.c/buggy/drivers/net/eepro.c