diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-08 00:46:30 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-08 00:46:30 +0000 |
commit | 4febe13de8e3ef7f4ecd4f5c31bc50f5c46c9ad8 (patch) | |
tree | 379d9d0e7a3d34a1761a88e5c2ab25a7fb2f91c7 /sys/dev/ic | |
parent | b7fa881ee5b78c51852a6c341fc0b4a80df211b3 (diff) |
set activate for ufshci_acpi and ufshci_fdt
tested by mglocker@ with pci, acpi and fdt attachments
ok mglocker@ deraadt@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ufshci.c | 5 | ||||
-rw-r--r-- | sys/dev/ic/ufshcivar.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/ic/ufshci.c b/sys/dev/ic/ufshci.c index 434aebfcc53..db08cbaae2a 100644 --- a/sys/dev/ic/ufshci.c +++ b/sys/dev/ic/ufshci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshci.c,v 1.41 2024/08/30 18:22:41 mglocker Exp $ */ +/* $OpenBSD: ufshci.c,v 1.42 2024/10/08 00:46:29 jsg Exp $ */ /* * Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org> @@ -1380,8 +1380,9 @@ ufshci_xfer_complete(struct ufshci_softc *sc) } int -ufshci_activate(struct ufshci_softc *sc, int act) +ufshci_activate(struct device *self, int act) { + struct ufshci_softc *sc = (struct ufshci_softc *)self; int rv = 0; switch (act) { diff --git a/sys/dev/ic/ufshcivar.h b/sys/dev/ic/ufshcivar.h index bdd7a210180..d41e58f557e 100644 --- a/sys/dev/ic/ufshcivar.h +++ b/sys/dev/ic/ufshcivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshcivar.h,v 1.9 2024/05/29 00:48:15 jsg Exp $ */ +/* $OpenBSD: ufshcivar.h,v 1.10 2024/10/08 00:46:29 jsg Exp $ */ /* * Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org> @@ -83,4 +83,4 @@ struct ufshci_softc { int ufshci_intr(void *); int ufshci_attach(struct ufshci_softc *); -int ufshci_activate(struct ufshci_softc *, int); +int ufshci_activate(struct device *, int); |