summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2010-12-11 18:12:45 +0000
committermatt <matt@NetBSD.org>2010-12-11 18:12:45 +0000
commit000855beb4b2732079c2be62a03afdf06931d65e (patch)
tree7d547ae513485610e4efa524439842c8d930f971 /sys/dev
parent94f20eb6438749fc81a327acce4ed2552f62ea8a (diff)
Use device_private
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vme/vme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vme/vme.c b/sys/dev/vme/vme.c
index bf6cb826c76..9007c38e755 100644
--- a/sys/dev/vme/vme.c
+++ b/sys/dev/vme/vme.c
@@ -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 @@ vmeprint(struct vme_attach_args *v, char *dummy)
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 @@ vmesubmatch1(device_t bus, cfdata_t dev, const int *ldesc, void *aux)
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))