Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Make this compile.



details:   https://anonhg.NetBSD.org/src/rev/dff1663bbd61
branches:  trunk
changeset: 772833:dff1663bbd61
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Jan 17 18:04:46 2012 +0000

description:
Make this compile.

diffstat:

 sys/dev/isa/wbsio.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7e383794f135 -r dff1663bbd61 sys/dev/isa/wbsio.c
--- a/sys/dev/isa/wbsio.c       Tue Jan 17 17:58:36 2012 +0000
+++ b/sys/dev/isa/wbsio.c       Tue Jan 17 18:04:46 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wbsio.c,v 1.7 2012/01/17 17:17:15 jakllsch Exp $       */
+/*     $NetBSD: wbsio.c,v 1.8 2012/01/17 18:04:46 jakllsch Exp $       */
 /*     $OpenBSD: wbsio.c,v 1.5 2009/03/29 21:53:52 sthen Exp $ */
 /*
  * Copyright (c) 2008 Mark Kettenis <kettenis%openbsd.org@localhost>
@@ -153,7 +153,7 @@
 void
 wbsio_attach(device_t parent, device_t self, void *aux)
 {
-       struct wbsio_softc *sc = (void *)self;
+       struct wbsio_softc *sc = device_private(self);
        struct isa_attach_args *ia = aux;
        struct isa_attach_args nia;
        const char *desc = NULL;
@@ -233,6 +233,7 @@
 int
 wbsio_detach(device_t self, int flags)
 {
+       struct wbsio_softc *sc = device_private(self);
        int rc;
 
        if ((rc = config_detach_children(self, flags)) != 0)



Home | Main Index | Thread Index | Old Index