ide: factor out devices init from ide_init_port_data()