From 3faf8c6fd7d9d31e612e9b31968390a6a8d94571 Mon Sep 17 00:00:00 2001 From: cegger Date: Tue, 1 Apr 2008 23:44:48 +0000 Subject: [PATCH] convert to CFATTACH_DECL_NEW OK matt and mrg --- sys/arch/amd64/amd64/mainbus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/arch/amd64/amd64/mainbus.c b/sys/arch/amd64/amd64/mainbus.c index b2cb435d6a1c..2835c045e49e 100644 --- a/sys/arch/amd64/amd64/mainbus.c +++ b/sys/arch/amd64/amd64/mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.20 2007/12/09 20:27:43 jmcneill Exp $ */ +/* $NetBSD: mainbus.c,v 1.21 2008/04/01 23:44:48 cegger Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.20 2007/12/09 20:27:43 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.21 2008/04/01 23:44:48 cegger Exp $"); #include #include @@ -70,10 +70,10 @@ __KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.20 2007/12/09 20:27:43 jmcneill Exp $" * XXXfvdl ACPI */ -int mainbus_match(struct device *, struct cfdata *, void *); -void mainbus_attach(struct device *, struct device *, void *); +int mainbus_match(device_t, cfdata_t, void *); +void mainbus_attach(device_t, device_t, void *); -CFATTACH_DECL(mainbus, sizeof(struct device), +CFATTACH_DECL_NEW(mainbus, 0, mainbus_match, mainbus_attach, NULL, NULL); int mainbus_print(void *, const char *); @@ -128,7 +128,7 @@ int mp_verbose = 0; * Probe for the mainbus; always succeeds. */ int -mainbus_match(struct device *parent, struct cfdata *match, void *aux) +mainbus_match(device_t parent, cfdata_t match, void *aux) { return 1; @@ -138,7 +138,7 @@ mainbus_match(struct device *parent, struct cfdata *match, void *aux) * Attach the mainbus. */ void -mainbus_attach(struct device *parent, struct device *self, void *aux) +mainbus_attach(device_t parent, device_t self, void *aux) { #if NPCI > 0 union mainbus_attach_args mba;