summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-ux500/Makefile3
-rw-r--r--arch/arm/mach-ux500/regulator-db8500.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/Makefile b/arch/arm/mach-ux500/Makefile
index 3c192562073..2bd2818c6cf 100644
--- a/arch/arm/mach-ux500/Makefile
+++ b/arch/arm/mach-ux500/Makefile
@@ -11,7 +11,7 @@ obj-$(CONFIG_UX500_SOC_DB5500) += cpu-db5500.o dma-db5500.o prcmu-db5500.o \
clock-debug.o
obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o \
prcmu-db8500.o clock-db8500.o \
- regulator-db8500.o timer-rtt.o
+ timer-rtt.o
obj-$(CONFIG_MACH_U8500) += board-mop500.o board-mop500-sdi.o \
board-mop500-regulators.o \
board-mop500-uib.o board-mop500-stuib.o \
@@ -30,6 +30,7 @@ obj-$(CONFIG_TEE_SVP) += tee_service_svp.o
obj-$(CONFIG_TEE_SVP) += tee_ta_start_modem_svp.o
obj-$(CONFIG_DB8500_MLOADER) += mloader-db8500.o
obj-$(CONFIG_UX500_PRCMU_TIMER) += timer-prcmu.o
+obj-$(CONFIG_REGULATOR) += regulator-db8500.o
obj-$(CONFIG_U8500_REGULATOR_DEBUG) += virt-regulator-u8500.o
obj-$(CONFIG_UX500_PRCMU_DEBUG) += prcmu-debug.o
obj-$(CONFIG_UX500_PRCMU_QOS_POWER) += prcmu-qos-power.o
diff --git a/arch/arm/mach-ux500/regulator-db8500.c b/arch/arm/mach-ux500/regulator-db8500.c
index eebd3cf9d44..b52530daabe 100644
--- a/arch/arm/mach-ux500/regulator-db8500.c
+++ b/arch/arm/mach-ux500/regulator-db8500.c
@@ -144,6 +144,8 @@ void ux500_regulator_put(struct ux500_regulator *regulator)
/* Here for symetric reasons and for possible future use */
}
+#ifdef CONFIG_UX500_SOC_DB8500
+
/**
* struct db8500_regulator_info - db8500 regulator information
* @dev: device pointer
@@ -644,3 +646,5 @@ module_exit(db8500_regulator_exit);
MODULE_AUTHOR("STMicroelectronics/ST-Ericsson");
MODULE_DESCRIPTION("DB8500 regulator driver");
MODULE_LICENSE("GPL v2");
+
+#endif /* CONFIG_UX500_SOC_DB8500 */