HomeFreeBSD

LinuxKPI: fix pci device devres initialisation

Description

LinuxKPI: fix pci device devres initialisation

Given we are manually setting up the "device" in PCI in some cases,
we need to initialise the list and lock for device devres here as well
as otherwise we will panic on the uninitialised lock.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30681

(cherry picked from commit c3518147ceb301b01763c3754697731a24410565)

Details

Provenance
bzAuthored on Jun 7 2021, 5:26 PM
Reviewer
hselasky
Differential Revision
D30681: LinuxKPI: fix pci device devres initialisation
Parents
rG1eaaada457d6: LinuxKPI: enhance the irq KPI for managed and threaded operations.
Branches
Unknown
Tags
Unknown