git: b714eacb7905 - main - acpi: Pass the correct device to acpi_pcib_osc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jan 2025 16:27:24 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=b714eacb790551f35de03831b88ad7b7e1502102 commit b714eacb790551f35de03831b88ad7b7e1502102 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2025-01-03 16:03:31 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2025-01-03 16:10:41 +0000 acpi: Pass the correct device to acpi_pcib_osc Fix a copy-and-paste error in acpi_pcib_request_feature where the child device was passed into acpi_pcib_osc rather than the pcib device. Reviewed by: garga, jhb Fixes: ba1904937d9a ("acpica: Extract _OSC parsing to a common file") Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D48285 --- sys/dev/acpica/acpi_pcib_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index e4cff4639a93..e8ab481d776f 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -703,7 +703,7 @@ acpi_pcib_request_feature(device_t pcib, device_t dev, enum pci_feature feature) return (EINVAL); } - return (acpi_pcib_osc(dev, &sc->ap_osc_ctl, osc_ctl)); + return (acpi_pcib_osc(pcib, &sc->ap_osc_ctl, osc_ctl)); } static bus_dma_tag_t