regulator: core: remove build warning caused by sprd bsp 54/164954/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 22 Dec 2017 04:34:47 +0000 (13:34 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 22 Dec 2017 04:34:49 +0000 (13:34 +0900)
From sprd bsp, regulator_init_complete() is fixed not to be called
and it causes unused function build waring. Remove the build warning.

Change-Id: I63d26fbe9b22d4bb4467f859d2ad762998be0931
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/regulator/core.c

index 7e27b58..6e6bc92 100755 (executable)
@@ -4016,6 +4016,7 @@ static int __init regulator_init(void)
 /* init early to allow our consumers to complete system booting */
 core_initcall(regulator_init);
 
+#if !defined(CONFIG_ARCH_SC)
 static int __init regulator_init_complete(void)
 {
        struct regulator_dev *rdev;
@@ -4084,6 +4085,7 @@ unlock:
 
        return 0;
 }
+#endif
 
 /* FIXME:
  * not all module driver enable regulator before use at now,