for (i = 0; i < 3; i++) if (db9_base[i]) { for (j = 0; j < min(db9_max_pads[db9_base[i]->mode], DB9_MAX_DEVICES); j++) input_unregister_device(db9_base[i]->dev + j); parport_unregister_device(db9_base[i]->pd); }
for (i = 0; i < DB9_MAX_PORTS; i++) if (db9_base[i]) db9_remove(db9_base[i]);
static void __exit db9_exit(void){	int i, j;	for (i = 0; i < 3; i++)		if (db9_base[i]) {			for (j = 0; j < min(db9_max_pads[db9_base[i]->mode], DB9_MAX_DEVICES); j++)				input_unregister_device(db9_base[i]->dev + j);		parport_unregister_device(db9_base[i]->pd);	}}