convert to CFATTACH_DECL_NEW

OK matt and mrg
This commit is contained in:
cegger 2008-04-01 23:44:48 +00:00
parent 00823ac29b
commit 3faf8c6fd7
1 changed files with 7 additions and 7 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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;