Module Name:    src
Committed By:   skrll
Date:           Wed May 13 18:44:23 UTC 2009

Modified Files:
        src/sys/arch/hp700/dev: com_dino.c

Log Message:
Fix fallout from device_t/softc changes.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hp700/dev/com_dino.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/dev/com_dino.c
diff -u src/sys/arch/hp700/dev/com_dino.c:1.5 src/sys/arch/hp700/dev/com_dino.c:1.6
--- src/sys/arch/hp700/dev/com_dino.c:1.5	Fri May  8 09:33:57 2009
+++ src/sys/arch/hp700/dev/com_dino.c	Wed May 13 18:44:23 2009
@@ -86,8 +86,9 @@
 void
 com_dino_attach(device_t parent, device_t self, void *aux)
 {
-	struct com_dino_softc *sc_dino = device_private(self);
-	struct com_softc *sc = &sc_dino->sc_com;
+	void *sc_dino = device_private(parent);
+	struct com_dino_softc *sc_comdino = device_private(self);
+	struct com_softc *sc = &sc_comdino->sc_com;
 	struct confargs *ca = aux;
 	struct com_dino_regs *regs = (struct com_dino_regs *)ca->ca_hpa;
 	int pagezero_cookie;
@@ -139,6 +140,6 @@
 
 	ca->ca_irq = 11;
 
-	sc_dino->sc_ih = dino_intr_establish(parent, ca->ca_irq, IPL_TTY,
+	sc_comdino->sc_ih = dino_intr_establish(sc_dino, ca->ca_irq, IPL_TTY,
 	    comintr, sc);
 }

Reply via email to