summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2024-01-06 17:47:44 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2024-01-06 17:47:44 +0000
commit238510516d0da691cb2bee8c5e25ddeb0dd9e948 (patch)
treebf40c8b93e02ecffa568cbab44ff5fb63b5a21c2 /sys/dev
parenta5e1b47e8eb9dca7435998703bbcf1afe4388398 (diff)
Zap more obsolete debug code.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/ufshci_acpi.c7
-rw-r--r--sys/dev/ic/ufshci.c11
2 files changed, 3 insertions, 15 deletions
diff --git a/sys/dev/acpi/ufshci_acpi.c b/sys/dev/acpi/ufshci_acpi.c
index 27b8b97b629..804247ef8ca 100644
--- a/sys/dev/acpi/ufshci_acpi.c
+++ b/sys/dev/acpi/ufshci_acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufshci_acpi.c,v 1.1 2023/02/04 23:11:59 mglocker Exp $ */
+/* $OpenBSD: ufshci_acpi.c,v 1.2 2024/01/06 17:47:43 mglocker Exp $ */
/*
* Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org>
*
@@ -100,10 +100,7 @@ ufshci_acpi_attach(struct device *parent, struct device *self, void *aux)
printf(": can't establish interrupt\n");
return;
}
-#if 0
- /* XXX: Only for testing */
- config_mountroot(self, ufshci_attach_hook);
-#endif
+
error = ufshci_attach(&sc->sc);
if (error) {
printf("%s: attach failed, error=%d\n",
diff --git a/sys/dev/ic/ufshci.c b/sys/dev/ic/ufshci.c
index 39b0acb540c..b4902abc438 100644
--- a/sys/dev/ic/ufshci.c
+++ b/sys/dev/ic/ufshci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufshci.c,v 1.8 2024/01/06 13:23:47 mglocker Exp $ */
+/* $OpenBSD: ufshci.c,v 1.9 2024/01/06 17:47:43 mglocker Exp $ */
/*
* Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org>
@@ -147,15 +147,6 @@ ufshci_intr(void *arg)
return 1;
}
-/* XXX: Only for testing */
-void
-ufshci_attach_hook(struct device *self)
-{
- struct ufshci_softc *sc = (struct ufshci_softc *)self;
-
- ufshci_attach(sc);
-}
-
int
ufshci_attach(struct ufshci_softc *sc)
{