HomeFreeBSD

USB: dwc3: use device_{has,get}_property()

Description

USB: dwc3: use device_{has,get}_property()

Switch the driver to use device based functions which will work not
only with FDT but also ACPI.

While here make dr_mode a local variable as it is only used during
probe and not needed later in the softc.

MFC after: 2 weeks
Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D33170

Details

Provenance
bzAuthored on Nov 29 2021, 7:26 PM
Reviewer
mw
Differential Revision
D33170: USB: dwc3: use device_{has,get}_property()
Parents
rG945eaca155fc: ACPI: change arguments to internal acpi_find_dsd()
Branches
Unknown
Tags
Unknown