msm: spm_devices: Initialize return error code
If msm_spm_set_vdd() is called when a driver is uninitialized, then the
function returns an uninitialized error code to the caller. Fix by
initializing the error code to -ENODEV.
Change-Id: I0da7c1459757158c69eddff58188b0b5859df17e
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/spm_devices.c b/arch/arm/mach-msm/spm_devices.c
index 233c5a5..174d444 100644
--- a/arch/arm/mach-msm/spm_devices.c
+++ b/arch/arm/mach-msm/spm_devices.c
@@ -74,6 +74,7 @@
info.cpu = cpu;
info.vlevel = vlevel;
+ info.err = -ENODEV;
if (cpu_online(cpu)) {
/**