-/* $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>
*
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",
-/* $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>
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)
{