Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev use device_private() to find the matchi...



details:   https://anonhg.NetBSD.org/src/rev/9aacef2a44c7
branches:  trunk
changeset: 768219:9aacef2a44c7
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Aug 12 05:00:29 2011 +0000

description:
use device_private() to find the matching pyro leaf, now that pyro
has been device_t-ified.

diffstat:

 sys/arch/sparc64/dev/ebus_mainbus.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d782836cb18b -r 9aacef2a44c7 sys/arch/sparc64/dev/ebus_mainbus.c
--- a/sys/arch/sparc64/dev/ebus_mainbus.c       Fri Aug 12 04:14:00 2011 +0000
+++ b/sys/arch/sparc64/dev/ebus_mainbus.c       Fri Aug 12 05:00:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ebus_mainbus.c,v 1.5 2011/07/01 18:48:36 dyoung Exp $  */
+/*     $NetBSD: ebus_mainbus.c,v 1.6 2011/08/12 05:00:29 mrg Exp $     */
 /*     $OpenBSD: ebus_mainbus.c,v 1.7 2010/11/11 17:58:23 miod Exp $   */
 
 /*
@@ -98,7 +98,7 @@
 
                for (i = 0; i < pyro_cd.cd_ndevs; i++) {
                        device_t dt = pyro_cd.cd_devs[i];
-                       psc = (struct pyro_softc *)dt;
+                       psc = device_private(dt);
                        if (psc && psc->sc_ign == sc->sc_ign) {
                                sc->sc_bust = psc->sc_bustag;
                                sc->sc_csr = psc->sc_csr;



Home | Main Index | Thread Index | Old Index