Skip to content

Commit

Permalink
acpi: Pass the correct device to acpi_pcib_osc
Browse files Browse the repository at this point in the history
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:	ba19049 ("acpica: Extract _OSC parsing to a common file")
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D48285
  • Loading branch information
zxombie committed Jan 3, 2025
1 parent 143dff0 commit b714eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/dev/acpica/acpi_pcib_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b714eac

Please sign in to comment.