@@ -533,7 +533,7 @@ void init_freq(struct shared_resource *resp)
{
char *linked_res_name;
int ret = -EINVAL;
- unsigned long freq;
+ unsigned long freq = 0;
resp->no_of_users = 0;
linked_res_name = (char *)resp->resource_data;
@@ -546,7 +546,8 @@ void init_freq(struct shared_resource *resp)
else if (strcmp(resp->name, "dsp_freq") == 0)
/* DSP freq in Mhz */
ret = opp_to_freq(&freq, OPP_DSP, curr_vdd1_opp);
- BUG_ON(ret);
+ if (ret)
+ pr_err("%s: initializing frequency failed!\n", __func__);
resp->curr_level = freq;
return;