diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2024-08-18 15:50:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2024-08-18 15:50:50 +0000 |
commit | b187fbc6264230e925351de483c4c7091931a1ce (patch) | |
tree | 519fe026d19ed6f58c4185709cfa371a6d431671 /sys/arch/arm | |
parent | 8912ff3000131b4d888072cfce0b8da978a8413b (diff) |
don't need to put config_activate_children inside cfattach, because
NULL means the same
ok kettenis
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/cortex/cortex.c | 5 | ||||
-rw-r--r-- | sys/arch/arm/mainbus/mainbus.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/arm/cortex/cortex.c b/sys/arch/arm/cortex/cortex.c index 3a55612aac2..9666b42fb5c 100644 --- a/sys/arch/arm/cortex/cortex.c +++ b/sys/arch/arm/cortex/cortex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cortex.c,v 1.7 2022/03/12 14:40:41 mpi Exp $ */ +/* $OpenBSD: cortex.c,v 1.8 2024/08/18 15:50:47 deraadt Exp $ */ /* $NetBSD: mainbus.c,v 1.3 2001/06/13 17:52:43 nathanw Exp $ */ /* @@ -81,8 +81,7 @@ int cortexsearch(struct device *, void *, void *); /* attach and device structures for the device */ const struct cfattach cortex_ca = { - sizeof(struct device), cortexmatch, cortexattach, NULL, - config_activate_children + sizeof(struct device), cortexmatch, cortexattach }; struct cfdriver cortex_cd = { diff --git a/sys/arch/arm/mainbus/mainbus.c b/sys/arch/arm/mainbus/mainbus.c index e5badd4b781..2ab91e7a3c5 100644 --- a/sys/arch/arm/mainbus/mainbus.c +++ b/sys/arch/arm/mainbus/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.24 2022/03/12 14:40:41 mpi Exp $ */ +/* $OpenBSD: mainbus.c,v 1.25 2024/08/18 15:50:49 deraadt Exp $ */ /* * Copyright (c) 2016 Patrick Wildt <patrick@blueri.se> * Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org> @@ -51,8 +51,7 @@ struct mainbus_softc { }; const struct cfattach mainbus_ca = { - sizeof(struct mainbus_softc), mainbus_match, mainbus_attach, NULL, - config_activate_children + sizeof(struct mainbus_softc), mainbus_match, mainbus_attach }; struct cfdriver mainbus_cd = { |