input_unregister_device(&port->adi[i].dev);
input_unregister_device(port->adi[i].dev);
static void adi_disconnect(struct gameport *gameport){	int i;	struct adi_port *port = gameport_get_drvdata(gameport);	for (i = 0; i < 2; i++)		if (port->adi[i].length > 0)			input_unregister_device(&port->adi[i].dev);	gameport_close(gameport);	gameport_set_drvdata(gameport, NULL);	kfree(port);}