Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 15:50:26 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207281 - head/sys/dev/esp
Message-ID:  <201004271550.o3RFoQxG052485@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Tue Apr 27 15:50:25 2010
New Revision: 207281
URL: http://svn.freebsd.org/changeset/base/207281

Log:
  Take advantage of OF_getscsinitid().

Modified:
  head/sys/dev/esp/esp_sbus.c

Modified: head/sys/dev/esp/esp_sbus.c
==============================================================================
--- head/sys/dev/esp/esp_sbus.c	Tue Apr 27 15:40:24 2010	(r207280)
+++ head/sys/dev/esp/esp_sbus.c	Tue Apr 27 15:50:25 2010	(r207281)
@@ -466,9 +466,7 @@ espattach(struct esp_softc *esc, const s
 		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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004271550.o3RFoQxG052485>