]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/host/ehci-fsl.c
fsl/usb: Limit phy_type comparison to first four characters
[karo-tx-uboot.git] / drivers / usb / host / ehci-fsl.c
index 45e5d6a5bde7b458638edfc2992620b7fd3a33ef..1ca7cf5d9b7911aac8e2bbc5c5ff7aefffe2e299 100644 (file)
@@ -86,7 +86,7 @@ int ehci_hcd_init(int index, enum usb_init_type init,
 #endif
        }
 
-       if (!strcmp(phy_type, "utmi")) {
+       if (!strncmp(phy_type, "utmi", 4)) {
 #if defined(CONFIG_SYS_FSL_USB_INTERNAL_UTMI_PHY)
                setbits_be32(&ehci->control, PHY_CLK_SEL_UTMI);
                setbits_be32(&ehci->control, UTMI_PHY_EN);