ioc3/ioc4: fix error path on driver registration