diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-03-29 22:54:38 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-03-29 22:54:38 +0000 |
commit | 96411af29ec8841de1a60e7af2cccb38d61ed293 (patch) | |
tree | 0ef3cd2fec988587c110ebc17c422c88f2b28fb0 /sys | |
parent | dce89e4aee34d500b2fa768e76573b5b7ce88166 (diff) |
Get rid of Data modified on freelist: at boot.
Always allocate the devices's softc structure, not just struct device.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/powerpc/mainbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/powerpc/mainbus.c b/sys/arch/powerpc/powerpc/mainbus.c index e77c63b456d..69c1cd66533 100644 --- a/sys/arch/powerpc/powerpc/mainbus.c +++ b/sys/arch/powerpc/powerpc/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.4 2000/07/28 13:03:24 rahnds Exp $ */ +/* $OpenBSD: mainbus.c,v 1.5 2001/03/29 22:54:37 drahn Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -45,7 +45,7 @@ static void mbattach __P((struct device *, struct device *, void *)); static int mbprint __P((void *, const char *)); struct cfattach mainbus_ca = { - sizeof(struct device), mbmatch, mbattach + sizeof(struct mainbus_softc), mbmatch, mbattach }; struct cfdriver mainbus_cd = { NULL, "mainbus", DV_DULL, NULL, 0 |