Use CFATTACH_DECL().

This commit is contained in:
thorpej 2002-10-01 05:01:37 +00:00
parent 6bc733245c
commit b7e3052e30
5 changed files with 15 additions and 21 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ds1743.c,v 1.5 2002/09/27 20:37:06 thorpej Exp $ */ /* $NetBSD: ds1743.c,v 1.6 2002/10/01 05:01:37 thorpej Exp $ */
/* /*
* Copyright (c) 2001-2002 Wasabi Sysetms, Inc. * Copyright (c) 2001-2002 Wasabi Sysetms, Inc.
@ -69,9 +69,8 @@ static u_char ds1743_lock(struct dsrtc_softc *, u_char);
static void ds1743_unlock(struct dsrtc_softc *, u_char); static void ds1743_unlock(struct dsrtc_softc *, u_char);
/* device and attach structures */ /* device and attach structures */
const struct cfattach dsrtc_ca = { CFATTACH_DECL(dsrtc, sizeof(struct dsrtc_softc),
sizeof(struct dsrtc_softc), dsrtcmatch, dsrtcattach dsrtcmatch, dsrtcattach, NULL, NULL)
};
/* /*
* dsrtcmatch() * dsrtcmatch()

View File

@ -1,4 +1,4 @@
/* $NetBSD: pbus.c,v 1.6 2002/09/27 20:37:07 thorpej Exp $ */ /* $NetBSD: pbus.c,v 1.7 2002/10/01 05:01:37 thorpej Exp $ */
/* /*
* Copyright 2001 Wasabi Systems, Inc. * Copyright 2001 Wasabi Systems, Inc.
@ -98,10 +98,8 @@ static void pbus_attach(struct device *, struct device *, void *);
static int pbus_submatch(struct device *, struct cfdata *, void *); static int pbus_submatch(struct device *, struct cfdata *, void *);
static int pbus_print(void *, const char *); static int pbus_print(void *, const char *);
const struct cfattach pbus_ca = { CFATTACH_DECL(pbus, sizeof(struct device),
sizeof(struct device), pbus_match, pbus_attach pbus_match, pbus_attach, NULL, NULL)
};
/* /*
* Probe for the peripheral bus. * Probe for the peripheral bus.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pckbc_pbus.c,v 1.5 2002/09/27 20:37:07 thorpej Exp $ */ /* $NetBSD: pckbc_pbus.c,v 1.6 2002/10/01 05:01:37 thorpej Exp $ */
/* /*
* Copyright 2001 Wasabi Systems, Inc. * Copyright 2001 Wasabi Systems, Inc.
@ -63,9 +63,8 @@ static int pckbc_pbus_probe(struct device *, struct cfdata *, void *);
static void pckbc_pbus_attach(struct device *, struct device *, void *); static void pckbc_pbus_attach(struct device *, struct device *, void *);
static void pckbc_pbus_intr_establish(struct pckbc_softc *, pckbc_slot_t); static void pckbc_pbus_intr_establish(struct pckbc_softc *, pckbc_slot_t);
const struct cfattach pckbc_pbus_ca = { CFATTACH_DECL(pckbc_pbus, sizeof(struct pckbc_pbus_softc),
sizeof(struct pckbc_pbus_softc), pckbc_pbus_probe, pckbc_pbus_attach pckbc_pbus_probe, pckbc_pbus_attach, NULL, NULL)
};
int pckbcfound = 0; int pckbcfound = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: todclock.c,v 1.3 2002/09/27 20:37:07 thorpej Exp $ */ /* $NetBSD: todclock.c,v 1.4 2002/10/01 05:01:37 thorpej Exp $ */
/* /*
* Copyright (c) 1994-1997 Mark Brinicombe. * Copyright (c) 1994-1997 Mark Brinicombe.
@ -88,9 +88,8 @@ static struct todclock_softc *todclock_sc = NULL;
/* driver and attach structures */ /* driver and attach structures */
const struct cfattach todclock_ca = { CFATTACH_DECL(todclock, sizeof(struct todclock_softc),
sizeof(struct todclock_softc), todclockmatch, todclockattach todclockmatch, todclockattach)
};
/* /*
* int todclockmatch(struct device *parent, struct cfdata *cf, void *aux) * int todclockmatch(struct device *parent, struct cfdata *cf, void *aux)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pchb.c,v 1.10 2002/09/27 20:37:08 thorpej Exp $ */ /* $NetBSD: pchb.c,v 1.11 2002/10/01 05:01:37 thorpej Exp $ */
/*- /*-
* Copyright (c) 1996 The NetBSD Foundation, Inc. * Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -60,9 +60,8 @@ static int pchbmatch(struct device *, struct cfdata *, void *);
static void pchbattach(struct device *, struct device *, void *); static void pchbattach(struct device *, struct device *, void *);
static int pchbprint(void *, const char *); static int pchbprint(void *, const char *);
const struct cfattach pchb_ca = { CFATTACH_DECL(pchb, sizeof(struct device),
sizeof(struct device), pchbmatch, pchbattach pchbmatch, pchbattach, NULL, NULL)
};
static int pcifound = 0; static int pcifound = 0;