if (!request_mem_region(CUSTOM_PHYSADDR+10+i*2, 2, "amijoy [Denise]")) { if (i == 1 && amijoy[0]) { input_unregister_device(amijoy_dev); release_mem_region(CUSTOM_PHYSADDR+10, 2); } return -EBUSY; }  amijoy_dev[i].open = amijoy_open; amijoy_dev[i].close = amijoy_close; amijoy_dev[i].evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); amijoy_dev[i].absbit[0] = BIT(ABS_X) | BIT(ABS_Y); amijoy_dev[i].keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT); for (j = 0; j < 2; j++) { amijoy_dev[i].absmin[ABS_X + j] = -1; amijoy_dev[i].absmax[ABS_X + j] = 1; }  amijoy_dev[i].name = amijoy_name; amijoy_dev[i].phys = amijoy_phys[i]; amijoy_dev[i].id.bustype = BUS_AMIGA; amijoy_dev[i].id.vendor = 0x0001; amijoy_dev[i].id.product = 0x0003; amijoy_dev[i].id.version = 0x0100;  input_register_device(amijoy_dev + i); printk(KERN_INFO "input: %s at joy%ddat\n", amijoy_name, i); 
input_unregister_device(amijoy_dev[i]); release_mem_region(CUSTOM_PHYSADDR + 10 + i * 2, 2); 
static int __init amijoy_init(void){	int i, j;	for (i = 0; i < 2; i++)		if (amijoy[i]) {			if (!request_mem_region(CUSTOM_PHYSADDR+10+i*2, 2,						"amijoy [Denise]")) {				if (i == 1 && amijoy[0]) {					input_unregister_device(amijoy_dev);					release_mem_region(CUSTOM_PHYSADDR+10, 2);				}				return -EBUSY;			}			amijoy_dev[i].open = amijoy_open;			amijoy_dev[i].close = amijoy_close;			amijoy_dev[i].evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);			amijoy_dev[i].absbit[0] = BIT(ABS_X) | BIT(ABS_Y);			amijoy_dev[i].keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT);			for (j = 0; j < 2; j++) {				amijoy_dev[i].absmin[ABS_X + j] = -1;				amijoy_dev[i].absmax[ABS_X + j] = 1;			}			amijoy_dev[i].name = amijoy_name;			amijoy_dev[i].phys = amijoy_phys[i];			amijoy_dev[i].id.bustype = BUS_AMIGA;			amijoy_dev[i].id.vendor = 0x0001;			amijoy_dev[i].id.product = 0x0003;			amijoy_dev[i].id.version = 0x0100;			input_register_device(amijoy_dev + i);			printk(KERN_INFO "input: %s at joy%ddat\n", amijoy_name, i);		}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/amijoy.c/clean/drivers/input/joystick/amijoy.c