Module Name:    src
Committed By:   cegger
Date:           Wed May  6 09:32:52 UTC 2009

Modified Files:
        src/sys/dev/pci: joy_eap.c

Log Message:
use device_private()


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/joy_eap.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/pci/joy_eap.c
diff -u src/sys/dev/pci/joy_eap.c:1.10 src/sys/dev/pci/joy_eap.c:1.11
--- src/sys/dev/pci/joy_eap.c:1.10	Thu Apr 10 19:13:37 2008
+++ src/sys/dev/pci/joy_eap.c	Wed May  6 09:32:52 2009
@@ -1,7 +1,7 @@
-/* $NetBSD: joy_eap.c,v 1.10 2008/04/10 19:13:37 cegger Exp $ */
+/* $NetBSD: joy_eap.c,v 1.11 2009/05/06 09:32:52 cegger Exp $ */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.10 2008/04/10 19:13:37 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.11 2009/05/06 09:32:52 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,7 +113,7 @@
 joy_eap_detach(device_t self, int flags)
 {
 
-	return joydetach((struct joy_softc *)self, flags);
+	return joydetach(device_private(self), flags);
 }
 
 CFATTACH_DECL_NEW(joy_eap, sizeof (struct joy_softc),

Reply via email to