From: Ye Li <[email protected]>

Remove the use of CONFIG_USB_MAX_CONTROLLER_COUNT in
enable_usboh3_clk(), as this option is relevant for non-DM USB. The
i.MX8ULP platform uses DM-based USB, so this dependency is unnecessary.

Signed-off-by: Ye Li <[email protected]>
Signed-off-by: Alice Guo <[email protected]>
---
 arch/arm/mach-imx/imx8ulp/clock.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-imx/imx8ulp/clock.c 
b/arch/arm/mach-imx/imx8ulp/clock.c
index c390f20d769..faf81262160 100644
--- a/arch/arm/mach-imx/imx8ulp/clock.c
+++ b/arch/arm/mach-imx/imx8ulp/clock.c
@@ -286,14 +286,10 @@ void enable_usboh3_clk(unsigned char enable)
                pcc_reset_peripheral(4, USB0_PCC4_SLOT, false);
                pcc_reset_peripheral(4, USBPHY_PCC4_SLOT, false);
 
-#ifdef CONFIG_USB_MAX_CONTROLLER_COUNT
-               if (CONFIG_USB_MAX_CONTROLLER_COUNT > 1) {
-                       pcc_clock_enable(4, USB1_PCC4_SLOT, true);
-                       pcc_clock_enable(4, USB1PHY_PCC4_SLOT, true);
-                       pcc_reset_peripheral(4, USB1_PCC4_SLOT, false);
-                       pcc_reset_peripheral(4, USB1PHY_PCC4_SLOT, false);
-               }
-#endif
+               pcc_clock_enable(4, USB1_PCC4_SLOT, true);
+               pcc_clock_enable(4, USB1PHY_PCC4_SLOT, true);
+               pcc_reset_peripheral(4, USB1_PCC4_SLOT, false);
+               pcc_reset_peripheral(4, USB1PHY_PCC4_SLOT, false);
 
                pcc_clock_enable(4, USB_XBAR_PCC4_SLOT, true);
        } else {

-- 
2.43.0

Reply via email to