HomeFreeBSD

pci: pci_host_generic: provide cleanup methods outside of detach

Description

pci: pci_host_generic: provide cleanup methods outside of detach

If device_attach() fails, we're expected to actually cleanup after
ourselves because device_detach() will not be called. Factor out the
cleanup bits that don't rely on attach having actually succeeded so
that we can cleanup properly in bcm2838_pci.

Reviewed by: andrew, imp
Differential Revision: https://reviews.freebsd.org/D56896

Details

Provenance
kevansAuthored on May 9 2026, 2:46 AM
Reviewer
andrew
Differential Revision
D56896: pci: pci_host_generic: provide cleanup methods outside of detach
Parents
rGb230a7b9a52c: kern: ofw: provide ofw_bus_destroy_iinfo to teardown interrupt-map
Branches
Unknown
Tags
Unknown