Module Name:    src
Committed By:   matt
Date:           Fri Jun  3 07:21:32 UTC 2011

Modified Files:
        src/sys/arch/acorn26/ioc: latches.c

Log Message:
Missed needed use of device_private


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/acorn26/ioc/latches.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/acorn26/ioc/latches.c
diff -u src/sys/arch/acorn26/ioc/latches.c:1.5 src/sys/arch/acorn26/ioc/latches.c:1.6
--- src/sys/arch/acorn26/ioc/latches.c:1.5	Wed Jan  7 00:09:24 2009
+++ src/sys/arch/acorn26/ioc/latches.c	Fri Jun  3 07:21:32 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: latches.c,v 1.5 2009/01/07 00:09:24 bjh21 Exp $ */
+/* $NetBSD: latches.c,v 1.6 2011/06/03 07:21:32 matt Exp $ */
 
 /*-
  * Copyright (c) 2001 Ben Harris
@@ -29,7 +29,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: latches.c,v 1.5 2009/01/07 00:09:24 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: latches.c,v 1.6 2011/06/03 07:21:32 matt Exp $");
 
 #include <sys/device.h>
 #include <sys/systm.h>
@@ -101,7 +101,7 @@
 void
 latcha_update(u_int8_t mask, u_int8_t value)
 {
-	struct latches_softc *sc = (void *)the_latches;
+	struct latches_softc *sc = device_private(the_latches);
 
 	sc->sc_latcha = (sc->sc_latcha & ~mask) | value;
 	bus_space_write_1(sc->sc_iot, sc->sc_ioh, LATCH_A, sc->sc_latcha);
@@ -110,7 +110,7 @@
 void
 latchb_update(u_int8_t mask, u_int8_t value)
 {
-	struct latches_softc *sc = (void *)the_latches;
+	struct latches_softc *sc = device_private(the_latches);
 
 	sc->sc_latchb = (sc->sc_latchb & ~mask) | value;
 	bus_space_write_1(sc->sc_iot, sc->sc_ioh, LATCH_B, sc->sc_latcha);

Reply via email to