From bc7b52891916f6829a0500db9b10607562590b73 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 4 Apr 2008 16:33:05 +0000 Subject: [PATCH] Use CFATTACH_DECL_NEW(). (no softc) --- sys/arch/ews4800mips/ews4800mips/cpu.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/arch/ews4800mips/ews4800mips/cpu.c b/sys/arch/ews4800mips/ews4800mips/cpu.c index 0504bb9198a4..6f75adb342a2 100644 --- a/sys/arch/ews4800mips/ews4800mips/cpu.c +++ b/sys/arch/ews4800mips/ews4800mips/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.2 2008/01/04 22:15:09 ad Exp $ */ +/* $NetBSD: cpu.c,v 1.3 2008/04/04 16:33:05 tsutsui Exp $ */ /* * Copyright (c) 2000 Soren S. Jorvang. All rights reserved. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.2 2008/01/04 22:15:09 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.3 2008/04/04 16:33:05 tsutsui Exp $"); #include #include @@ -36,16 +36,16 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.2 2008/01/04 22:15:09 ad Exp $"); #include "ioconf.h" -int cpumatch(struct device *, struct cfdata *, void *); -void cpuattach(struct device *, struct device *, void *); +int cpumatch(device_t, cfdata_t, void *); +void cpuattach(device_t, device_t, void *); -CFATTACH_DECL(cpu, sizeof (struct device), +CFATTACH_DECL_NEW(cpu, 0, cpumatch, cpuattach, NULL, NULL); static int cpu_attached; int -cpumatch(struct device *parent, struct cfdata *cf, void *aux) +cpumatch(device_t parent, cfdata_t cf, void *aux) { struct mainbus_attach_args *ma = aux; @@ -57,10 +57,10 @@ cpumatch(struct device *parent, struct cfdata *cf, void *aux) } void -cpuattach(struct device *parent, struct device *dev, void *aux) +cpuattach(device_t parent, device_t self, void *aux) { - printf(": "); + aprint_normal(": "); cpu_attached = 1; cpu_identify();