The first part in the script seems as if you were adding the driver to both the onboard parallel port and the pci port. The onboard port my have been using another driver that allowed the kernel to access it. I would leave that be.
I think the only driver that uses parallel port on my test system (tinycore linux) is parport_pc. As I said, if I load the driver without arguments everything is fine with the standard port.
That last part of the script indicates that the kernel auto-detects what io ports )io_hi are on available and assigns the appropriate driver. You told the kernel what parport to detect rather then letting it do it itself. Seems like either would've worked. From observation ;-)
That was exactly my expectation, unfortunately parport_pc does not autodetect my card (ch535 chip) so there is no other choice but to give the port for this as a parameter and if you do so you have to provide the built-in parallel port io port as well because (what is apparent from the code) if you give any parameters, the driver won't perform autodetection.
I've been sniffing around in the driver code and so far it seems that It does exactly the same thing regardless of how the built-in parallel port io port is provided which is even more baffling.
I will try to find out what is going on when I have some more time (tried to add the chip
to the autodetection list but so far without success, I think I have to remind myself
how the pci works :c).
Thanks for help!