Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc actually use CFATTACH_DECL_NEW() and de...
details: https://anonhg.NetBSD.org/src/rev/9f45804b19f1
branches: trunk
changeset: 767393:9f45804b19f1
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 17 23:34:17 2011 +0000
description:
actually use CFATTACH_DECL_NEW() and device_private() for mspcic.
diffstat:
sys/arch/sparc/sparc/msiiep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r ad9bcf4ec2d4 -r 9f45804b19f1 sys/arch/sparc/sparc/msiiep.c
--- a/sys/arch/sparc/sparc/msiiep.c Sun Jul 17 23:32:37 2011 +0000
+++ b/sys/arch/sparc/sparc/msiiep.c Sun Jul 17 23:34:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msiiep.c,v 1.42 2011/07/17 23:32:37 mrg Exp $ */
+/* $NetBSD: msiiep.c,v 1.43 2011/07/17 23:34:17 mrg Exp $ */
/*
* Copyright (c) 2001 Valeriy E. Ushakov
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.42 2011/07/17 23:32:37 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.43 2011/07/17 23:34:17 mrg Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -83,7 +83,7 @@
static void mspcic_attach(device_t, device_t, void *);
static int mspcic_print(void *, const char *);
-CFATTACH_DECL(mspcic, sizeof(struct mspcic_softc),
+CFATTACH_DECL_NEW(mspcic, sizeof(struct mspcic_softc),
mspcic_match, mspcic_attach, NULL, NULL);
@@ -278,7 +278,7 @@
static void
mspcic_attach(device_t parent, device_t self, void *aux)
{
- struct mspcic_softc *sc = (struct mspcic_softc *)self;
+ struct mspcic_softc *sc = device_private(self);
struct msiiep_attach_args *msa = aux;
struct mainbus_attach_args *ma = msa->msa_ma;
int node = ma->ma_node;
Home |
Main Index |
Thread Index |
Old Index