ide: fix ide_register_hw() to check hwif->io_ports[]