Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev use device_private(). thanks to jmcnei...
details: https://anonhg.NetBSD.org/src/rev/b0bf74d75a58
branches: trunk
changeset: 767836:b0bf74d75a58
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Aug 01 08:36:39 2011 +0000
description:
use device_private(). thanks to jmcneill for pointing this out.
diffstat:
sys/arch/sparc64/dev/central.c | 4 ++--
sys/arch/sparc64/dev/fhc_central.c | 4 ++--
sys/arch/sparc64/dev/fhc_mainbus.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 2dc276e9b7e7 -r b0bf74d75a58 sys/arch/sparc64/dev/central.c
--- a/sys/arch/sparc64/dev/central.c Mon Aug 01 06:16:35 2011 +0000
+++ b/sys/arch/sparc64/dev/central.c Mon Aug 01 08:36:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: central.c,v 1.1 2011/07/29 08:37:36 mrg Exp $ */
+/* $NetBSD: central.c,v 1.2 2011/08/01 08:36:39 mrg Exp $ */
/* $OpenBSD: central.c,v 1.7 2010/11/11 17:58:23 miod Exp $ */
/*
@@ -80,7 +80,7 @@
static void
central_attach(device_t parent, device_t self, void *aux)
{
- struct central_softc *sc = (struct central_softc *)self;
+ struct central_softc *sc = device_private(self);
struct mainbus_attach_args *ma = aux;
int node0, node;
diff -r 2dc276e9b7e7 -r b0bf74d75a58 sys/arch/sparc64/dev/fhc_central.c
--- a/sys/arch/sparc64/dev/fhc_central.c Mon Aug 01 06:16:35 2011 +0000
+++ b/sys/arch/sparc64/dev/fhc_central.c Mon Aug 01 08:36:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fhc_central.c,v 1.1 2011/07/29 08:37:36 mrg Exp $ */
+/* $NetBSD: fhc_central.c,v 1.2 2011/08/01 08:36:39 mrg Exp $ */
/* $OpenBSD: fhc_central.c,v 1.5 2004/09/27 18:32:35 jason Exp $ */
/*
@@ -61,7 +61,7 @@
void
fhc_central_attach(device_t parent, device_t self, void *aux)
{
- struct fhc_softc *sc = (struct fhc_softc *)self;
+ struct fhc_softc *sc = device_private(self);
struct central_attach_args *ca = aux;
u_int32_t board;
diff -r 2dc276e9b7e7 -r b0bf74d75a58 sys/arch/sparc64/dev/fhc_mainbus.c
--- a/sys/arch/sparc64/dev/fhc_mainbus.c Mon Aug 01 06:16:35 2011 +0000
+++ b/sys/arch/sparc64/dev/fhc_mainbus.c Mon Aug 01 08:36:39 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fhc_mainbus.c,v 1.1 2011/07/29 08:37:36 mrg Exp $ */
+/* $NetBSD: fhc_mainbus.c,v 1.2 2011/08/01 08:36:39 mrg Exp $ */
/* $OpenBSD: fhc_mainbus.c,v 1.4 2004/09/27 18:32:35 jason Exp $ */
/*
@@ -59,7 +59,7 @@
void
fhc_mainbus_attach(device_t parent, device_t self, void *aux)
{
- struct fhc_softc *sc = (struct fhc_softc *)self;
+ struct fhc_softc *sc = device_private(self);
struct mainbus_attach_args *ma = aux;
sc->sc_node = ma->ma_node;
Home |
Main Index |
Thread Index |
Old Index