> e.g. set some global variable that forbids device removal > and warn in the kernel log. In theory this could be also > done per device, but I guess that would be more effort.
There is a simpler way to do that, which is to just leak a reference in the hisax_find_pci_device hack. The pci_dev won't be going anywhere then.