[COMMON] usb: Fixed featuring regarding CPU_IDLE.
authorJang JeongHoon <jnghn.jang@samsung.com>
Fri, 18 May 2018 02:31:06 +0000 (11:31 +0900)
committerChungwoo Park <cww.park@samsung.com>
Wed, 23 May 2018 10:52:30 +0000 (19:52 +0900)
Change-Id: I466304be334e2fbbe7421cfaeda5da7499eed1d4
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
drivers/usb/dwc3/dwc3-exynos.c

index 353e1b588b355ed4248f55c9d4a5814f2c6283f4..d2fb09da3e40998ba871f44e465f87def5f42d20 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/io.h>
 #include <linux/usb/otg-fsm.h>
 
-#ifdef CONFIG_CPU_IDLE
+#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
 #include <soc/samsung/exynos-cpupm.h>
 #endif
 
@@ -425,7 +425,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
 
        exynos->dev = dev;
 
-#ifdef CONFIG_CPU_IDLE
+#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
        exynos->idle_ip_index = exynos_get_idle_ip_index(dev_name(dev));
        exynos_update_ip_idle_status(exynos->idle_ip_index, 0);
 #endif
@@ -544,7 +544,7 @@ static int dwc3_exynos_runtime_suspend(struct device *dev)
 
        dwc3_exynos_clk_disable(exynos);
 
-#ifdef CONFIG_CPU_IDLE
+#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
        /* inform what USB state is idle to IDLE_IP */
        exynos_update_ip_idle_status(exynos->idle_ip_index, 1);
 #endif
@@ -559,7 +559,7 @@ static int dwc3_exynos_runtime_resume(struct device *dev)
 
        dev_info(dev, "%s\n", __func__);
 
-#ifdef CONFIG_CPU_IDLE
+#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
        /* inform what USB state is not idle to IDLE_IP */
        exynos_update_ip_idle_status(exynos->idle_ip_index, 0);
 #endif