This change fixes kwlock issues. Change-Id: I095f4b1c34f1541789112ccaed8ea5bc4fa99792 Signed-off-by: Balakrishna Godavarthi <[email protected]>
@@ -1661,8 +1661,10 @@ EXPORT_SYMBOL(btpower_get_chipset_version);
static void set_pwr_srcs_status (struct vreg_data *handle, int core_type) {
int power_src_state;
- if (!handle)
+ if (!handle) {
pr_err("%s: invalid handler received \n", __func__);
+ return;
+ }
if (handle->is_enabled)
power_src_state = (int)regulator_get_voltage(handle->reg);