if (grip->registered[i]) input_unregister_device(grip->dev + i);
if (grip->port[i]->registered) input_unregister_device(grip->port[i]->dev);
static void grip_disconnect(struct gameport *gameport){	struct grip_mp *grip = gameport_get_drvdata(gameport);	int i;	for (i = 0; i < 4; i++)		if (grip->registered[i])			input_unregister_device(grip->dev + i);	gameport_close(gameport);	gameport_set_drvdata(gameport, NULL);	kfree(grip);}