Index | Thread | Search

From:
Jonathan Gray <jsg@jsg.id.au>
Subject:
set activate for sdhc_acpi and sdhc_fdt
To:
tech@openbsd.org
Date:
Sun, 6 Oct 2024 16:48:20 +1100

Download raw body.

Thread
  • Jonathan Gray:

    set activate for sdhc_acpi and sdhc_fdt

Index: dev/acpi/sdhc_acpi.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/sdhc_acpi.c,v
diff -u -p -r1.22 sdhc_acpi.c
--- dev/acpi/sdhc_acpi.c	8 Oct 2022 19:46:52 -0000	1.22
+++ dev/acpi/sdhc_acpi.c	6 Oct 2024 05:10:23 -0000
@@ -51,7 +51,8 @@ int	sdhc_acpi_match(struct device *, voi
 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[] = {
Index: dev/fdt/sdhc_fdt.c
===================================================================
RCS file: /cvs/src/sys/dev/fdt/sdhc_fdt.c,v
diff -u -p -r1.20 sdhc_fdt.c
--- dev/fdt/sdhc_fdt.c	8 Apr 2023 05:40:54 -0000	1.20
+++ dev/fdt/sdhc_fdt.c	6 Oct 2024 05:32:18 -0000
@@ -111,7 +111,8 @@ int	sdhc_fdt_match(struct device *, void
 void	sdhc_fdt_attach(struct device *, struct device *, void *);
 
 const struct cfattach sdhc_fdt_ca = {
-	sizeof(struct sdhc_fdt_softc), sdhc_fdt_match, sdhc_fdt_attach
+	sizeof(struct sdhc_fdt_softc), sdhc_fdt_match, sdhc_fdt_attach,
+	NULL, sdhc_activate
 };
 
 int	sdhc_fdt_card_detect(struct sdhc_softc *);