input_register_device(&logibm_dev); 
if (!(logibm_dev = input_allocate_device())) { printk(KERN_ERR "logibm.c: Not enough memory for input device\n"); release_region(LOGIBM_BASE, LOGIBM_EXTENT); return -ENOMEM; } 
static int __init logibm_init(void){	if (!request_region(LOGIBM_BASE, LOGIBM_EXTENT, "logibm")) {		printk(KERN_ERR "logibm.c: Can't allocate ports at %#x\n", LOGIBM_BASE);		return -EBUSY;	}	outb(LOGIBM_CONFIG_BYTE, LOGIBM_CONFIG_PORT);	outb(LOGIBM_SIGNATURE_BYTE, LOGIBM_SIGNATURE_PORT);	udelay(100);	if (inb(LOGIBM_SIGNATURE_PORT) != LOGIBM_SIGNATURE_BYTE) {		release_region(LOGIBM_BASE, LOGIBM_EXTENT);		printk(KERN_ERR "logibm.c: Didn't find Logitech busmouse at %#x\n", LOGIBM_BASE);		return -ENODEV;	}	outb(LOGIBM_DEFAULT_MODE, LOGIBM_CONFIG_PORT);	outb(LOGIBM_DISABLE_IRQ, LOGIBM_CONTROL_PORT);	input_register_device(&logibm_dev);	printk(KERN_INFO "input: Logitech bus mouse at %#x irq %d\n", LOGIBM_BASE, logibm_irq);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2e5b636bb5f8dacbb91d08544e2c41ebcad5dace/logibm.c/buggy/drivers/input/mouse/logibm.c