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.

Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D33170

(cherry picked from commit b11f52f4db4420f69da537e5ed9b54b7c4fef093)

Details

Provenance
bzAuthored on Nov 29 2021, 7:26 PM
Reviewer
mw
Differential Revision
D33170: USB: dwc3: use device_{has,get}_property()
Parents
rGab82f64eb5b3: pca954x: harmonize pca9547 and pca954x and add pca9540 support
Branches
Unknown
Tags
Unknown