Module Name:    src
Committed By:   jakllsch
Date:           Tue Jan 17 18:04:46 UTC 2012

Modified Files:
        src/sys/dev/isa: wbsio.c

Log Message:
Make this compile.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/isa/wbsio.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/dev/isa/wbsio.c
diff -u src/sys/dev/isa/wbsio.c:1.7 src/sys/dev/isa/wbsio.c:1.8
--- src/sys/dev/isa/wbsio.c:1.7	Tue Jan 17 17:17:15 2012
+++ src/sys/dev/isa/wbsio.c	Tue Jan 17 18:04:46 2012
@@ -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 <kette...@openbsd.org>
@@ -153,7 +153,7 @@ wbsio_probe(device_t parent, cfdata_t ma
 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 @@ wbsio_attach(device_t parent, device_t s
 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)

Reply via email to