Module Name: src
Committed By: cegger
Date: Thu May 7 07:56:03 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.11 -r1.12 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.11 src/sys/dev/pci/joy_eap.c:1.12
--- src/sys/dev/pci/joy_eap.c:1.11 Wed May 6 09:32:52 2009
+++ src/sys/dev/pci/joy_eap.c Thu May 7 07:56:03 2009
@@ -1,7 +1,7 @@
-/* $NetBSD: joy_eap.c,v 1.11 2009/05/06 09:32:52 cegger Exp $ */
+/* $NetBSD: joy_eap.c,v 1.12 2009/05/07 07:56:03 cegger Exp $ */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.11 2009/05/06 09:32:52 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: joy_eap.c,v 1.12 2009/05/07 07:56:03 cegger Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -68,7 +68,7 @@
eap_joy_detach(device_t joydev, struct eap_gameport_args *gpa)
{
int res;
- struct joy_softc *sc = (struct joy_softc *)joydev;
+ struct joy_softc *sc = device_private(joydev);
u_int32_t icsc;
res = config_detach(joydev, 0);