for (i = 0; i < 3; i++) if (tgfx_base[i]) { for (j = 0; j < 7; j++) if (tgfx_base[i]->sticks & (1 << j)) input_unregister_device(tgfx_base[i]->dev + j); parport_unregister_device(tgfx_base[i]->pd); }
for (i = 0; i < TGFX_MAX_PORTS; i++) if (tgfx_base[i]) tgfx_remove(tgfx_base[i]);
static void __exit tgfx_exit(void){	int i, j;	for (i = 0; i < 3; i++)		if (tgfx_base[i]) {			for (j = 0; j < 7; j++)				if (tgfx_base[i]->sticks & (1 << j))					input_unregister_device(tgfx_base[i]->dev + j);		parport_unregister_device(tgfx_base[i]->pd);	}}