gtia.c: converted to be a device. [Fabio Priuli]

also, fixed a regression in maxaflex.c and cleaned up a little bit the driver,