Skip to content

Commit 51c1685

Browse files
jwrdegoedeFelipe Balbi
authored andcommitted
usb: dwc3: pci: Fix dr_mode misspelling
usb_get_dr_mode() expects the device-property to be spelled "dr_mode" not "dr-mode". Spelling it properly fixes the following warning showing up in dmesg: [ 8704.500545] dwc3 dwc3.2.auto: Configuration mismatch. dr_mode forced to gadget Signed-off-by: Hans de Goede <[email protected] Signed-off-by: Felipe Balbi <[email protected]>
1 parent e71d363 commit 51c1685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/dwc3-pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int dwc3_pci_quirks(struct dwc3_pci *dwc)
115115
int ret;
116116

117117
struct property_entry properties[] = {
118-
PROPERTY_ENTRY_STRING("dr-mode", "peripheral"),
118+
PROPERTY_ENTRY_STRING("dr_mode", "peripheral"),
119119
{ }
120120
};
121121

0 commit comments

Comments
 (0)