Take advantage of OF_getscsinitid().

This commit is contained in:
Marius Strobl 2010-04-27 15:50:25 +00:00
parent 1b610a749e
commit 45191d2588

View File

@ -466,9 +466,7 @@ espattach(struct esp_softc *esc, const struct ncr53c9x_glue *gluep)
goto fail_lock;
}
if (OF_getprop(ofw_bus_get_node(esc->sc_dev), "scsi-initiator-id",
&sc->sc_id, sizeof(sc->sc_id)) == -1)
sc->sc_id = 7;
sc->sc_id = OF_getscsinitid(esc->sc_dev);
#ifdef ESP_SBUS_DEBUG
device_printf(esc->sc_dev, "%s: sc_id %d, freq %d\n",