summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-10-09 00:38:27 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-10-09 00:38:27 +0000
commitab27ef723dc14a293be4dea8839617241f3d3b85 (patch)
tree6246e90a691447a91c19badbfdbfb2592c8efdeb /sys/dev/acpi
parent8889aa55424f348f51c5a92a1c3e462522dd8ff3 (diff)
make attachments use pre-existing activate functions; ok deraadt@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/ahci_acpi.c5
-rw-r--r--sys/dev/acpi/ehci_acpi.c5
-rw-r--r--sys/dev/acpi/ipmi_acpi.c3
-rw-r--r--sys/dev/acpi/ohci_acpi.c5
-rw-r--r--sys/dev/acpi/sdhc_acpi.c5
-rw-r--r--sys/dev/acpi/xhci_acpi.c5
6 files changed, 17 insertions, 11 deletions
diff --git a/sys/dev/acpi/ahci_acpi.c b/sys/dev/acpi/ahci_acpi.c
index 9fa71439655..cd1bc63a3bd 100644
--- a/sys/dev/acpi/ahci_acpi.c
+++ b/sys/dev/acpi/ahci_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci_acpi.c,v 1.5 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: ahci_acpi.c,v 1.6 2024/10/09 00:38:25 jsg Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -40,7 +40,8 @@ int ahci_acpi_match(struct device *, void *, void *);
void ahci_acpi_attach(struct device *, struct device *, void *);
const struct cfattach ahci_acpi_ca = {
- sizeof(struct ahci_acpi_softc), ahci_acpi_match, ahci_acpi_attach
+ sizeof(struct ahci_acpi_softc), ahci_acpi_match, ahci_acpi_attach,
+ NULL, ahci_activate
};
int
diff --git a/sys/dev/acpi/ehci_acpi.c b/sys/dev/acpi/ehci_acpi.c
index 047513b8acc..ce0ebc51c7c 100644
--- a/sys/dev/acpi/ehci_acpi.c
+++ b/sys/dev/acpi/ehci_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci_acpi.c,v 1.3 2022/06/28 08:15:04 kettenis Exp $ */
+/* $OpenBSD: ehci_acpi.c,v 1.4 2024/10/09 00:38:26 jsg Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -47,7 +47,8 @@ int ehci_acpi_match(struct device *, void *, void *);
void ehci_acpi_attach(struct device *, struct device *, void *);
const struct cfattach ehci_acpi_ca = {
- sizeof(struct ehci_acpi_softc), ehci_acpi_match, ehci_acpi_attach
+ sizeof(struct ehci_acpi_softc), ehci_acpi_match, ehci_acpi_attach,
+ NULL, ehci_activate
};
const char *ehci_hids[] = {
diff --git a/sys/dev/acpi/ipmi_acpi.c b/sys/dev/acpi/ipmi_acpi.c
index 25e2527a334..f7ab8f68b41 100644
--- a/sys/dev/acpi/ipmi_acpi.c
+++ b/sys/dev/acpi/ipmi_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi_acpi.c,v 1.5 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: ipmi_acpi.c,v 1.6 2024/10/09 00:38:25 jsg Exp $ */
/*
* Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
*
@@ -55,6 +55,7 @@ struct ipmi_acpi_softc {
const struct cfattach ipmi_acpi_ca = {
sizeof(struct ipmi_acpi_softc), ipmi_acpi_match, ipmi_acpi_attach,
+ NULL, ipmi_activate
};
const char *ipmi_acpi_hids[] = { ACPI_DEV_IPMI, NULL };
diff --git a/sys/dev/acpi/ohci_acpi.c b/sys/dev/acpi/ohci_acpi.c
index c44f00882d2..39497e7059d 100644
--- a/sys/dev/acpi/ohci_acpi.c
+++ b/sys/dev/acpi/ohci_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci_acpi.c,v 1.2 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: ohci_acpi.c,v 1.3 2024/10/09 00:38:25 jsg Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -47,7 +47,8 @@ int ohci_acpi_match(struct device *, void *, void *);
void ohci_acpi_attach(struct device *, struct device *, void *);
const struct cfattach ohci_acpi_ca = {
- sizeof(struct ohci_acpi_softc), ohci_acpi_match, ohci_acpi_attach
+ sizeof(struct ohci_acpi_softc), ohci_acpi_match, ohci_acpi_attach,
+ NULL, ohci_activate
};
void ohci_acpi_attach_deferred(struct device *);
diff --git a/sys/dev/acpi/sdhc_acpi.c b/sys/dev/acpi/sdhc_acpi.c
index a3dc053d5e6..daf9e380a4b 100644
--- a/sys/dev/acpi/sdhc_acpi.c
+++ b/sys/dev/acpi/sdhc_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc_acpi.c,v 1.22 2022/10/08 19:46:52 kettenis Exp $ */
+/* $OpenBSD: sdhc_acpi.c,v 1.23 2024/10/09 00:38:25 jsg Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
@@ -51,7 +51,8 @@ int sdhc_acpi_match(struct device *, void *, void *);
void sdhc_acpi_attach(struct device *, struct device *, void *);
const struct cfattach sdhc_acpi_ca = {
- sizeof(struct sdhc_acpi_softc), sdhc_acpi_match, sdhc_acpi_attach
+ sizeof(struct sdhc_acpi_softc), sdhc_acpi_match, sdhc_acpi_attach,
+ NULL, sdhc_activate
};
const char *sdhc_hids[] = {
diff --git a/sys/dev/acpi/xhci_acpi.c b/sys/dev/acpi/xhci_acpi.c
index ad504b46ba4..0df1d6ec2c4 100644
--- a/sys/dev/acpi/xhci_acpi.c
+++ b/sys/dev/acpi/xhci_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci_acpi.c,v 1.12 2024/06/19 21:31:10 patrick Exp $ */
+/* $OpenBSD: xhci_acpi.c,v 1.13 2024/10/09 00:38:26 jsg Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
@@ -47,7 +47,8 @@ int xhci_acpi_match(struct device *, void *, void *);
void xhci_acpi_attach(struct device *, struct device *, void *);
const struct cfattach xhci_acpi_ca = {
- sizeof(struct xhci_acpi_softc), xhci_acpi_match, xhci_acpi_attach
+ sizeof(struct xhci_acpi_softc), xhci_acpi_match, xhci_acpi_attach,
+ NULL, xhci_activate
};
const char *xhci_hids[] = {