From: mglocker Date: Sat, 6 Jan 2024 17:47:43 +0000 (+0000) Subject: Zap more obsolete debug code. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=899d618dd8aca2fe45326d82a8cd7cfc967d151f;p=openbsd Zap more obsolete debug code. --- 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 * @@ -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 @@ -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) {