if (grip->mode[i]) input_unregister_device(grip->dev + i); 
if (grip->dev[i]) input_unregister_device(grip->dev[i]); 
static void grip_disconnect(struct gameport *gameport){	struct grip *grip = gameport_get_drvdata(gameport);	int i;	for (i = 0; i < 2; i++)		if (grip->mode[i])			input_unregister_device(grip->dev + i);	gameport_close(gameport);	gameport_set_drvdata(gameport, NULL);	kfree(grip);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/grip.c/buggy/drivers/input/joystick/grip.c