msm: rpm-regulator: add a hack to make RPM vreg functions no-ops on 8064

Make rpm_vreg_set_voltage and rpm_vreg_set_frequency no-ops for 8064.
This will allow the acpuclock driver on 8064 to call these functions
before RPM support is present on 8064.

Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/rpm-regulator-8960.c b/arch/arm/mach-msm/rpm-regulator-8960.c
index 2cacb88..64e0483 100644
--- a/arch/arm/mach-msm/rpm-regulator-8960.c
+++ b/arch/arm/mach-msm/rpm-regulator-8960.c
@@ -23,6 +23,7 @@
 #include <linux/regulator/driver.h>
 #include <mach/rpm.h>
 #include <mach/rpm-regulator.h>
+#include <mach/socinfo.h>
 
 #include "rpm_resources.h"
 
@@ -667,6 +668,15 @@
 		pr_err("invalid regulator id=%d\n", vreg_id);
 		return -EINVAL;
 	}
+
+	/*
+	 * TODO: make this function a no-op for 8064 so that it can be called by
+	 * consumers on 8064 before RPM capabilities are present. (needed for
+	 * acpuclock driver)
+	 */
+	if (cpu_is_apq8064())
+		return 0;
+
 	vreg = &vregs[vreg_id];
 	range = &vreg->set_points->range[0];
 
@@ -743,6 +753,14 @@
 		pr_err("invalid regulator id=%d\n", vreg_id);
 		return -EINVAL;
 	}
+
+	/*
+	 * TODO: make this function a no-op for 8064 so that it can be called by
+	 * consumers on 8064 before RPM capabilities are present.
+	 */
+	if (cpu_is_apq8064())
+		return 0;
+
 	vreg = &vregs[vreg_id];
 
 	if (freq < 0 || freq > RPM_VREG_FREQ_1p20) {