Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/vme Use device_private



details:   https://anonhg.NetBSD.org/src/rev/a5321d76cab6
branches:  trunk
changeset: 759495:a5321d76cab6
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Dec 11 18:12:45 2010 +0000

description:
Use device_private

diffstat:

 sys/dev/vme/vme.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 05eae5b0195c -r a5321d76cab6 sys/dev/vme/vme.c
--- a/sys/dev/vme/vme.c Sat Dec 11 18:10:42 2010 +0000
+++ b/sys/dev/vme/vme.c Sat Dec 11 18:12:45 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vme.c,v 1.23 2009/05/12 14:47:27 cegger Exp $ */
+/* $NetBSD: vme.c,v 1.24 2010/12/11 18:12:45 matt Exp $ */
 
 /*
  * Copyright (c) 1999
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.23 2009/05/12 14:47:27 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.24 2010/12/11 18:12:45 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -125,7 +125,7 @@
 static int
 vmesubmatch1(device_t bus, cfdata_t dev, const int *ldesc, void *aux)
 {
-       struct vmebus_softc *sc = (struct vmebus_softc*)bus;
+       struct vmebus_softc *sc = device_private(bus);
        struct vme_attach_args v;
 
        if (strcmp(dev->cf_name, VME_SLAVE_DUMMYDRV))
@@ -142,7 +142,7 @@
 static int
 vmesubmatch(device_t bus, cfdata_t dev, const int *ldesc, void *aux)
 {
-       struct vmebus_softc *sc = (struct vmebus_softc*)bus;
+       struct vmebus_softc *sc = device_private(bus);
        struct vme_attach_args v;
 
        if (!strcmp(dev->cf_name, VME_SLAVE_DUMMYDRV))



Home | Main Index | Thread Index | Old Index