mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "Bluetooth: Re-initialize regulator to NULL on error"
This commit is contained in:
commit
324dcd65f4
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ static int bt_power_vreg_set(enum bt_power_modes mode)
|
|||
vreg_info->name);
|
||||
if (IS_ERR(vreg_info->reg)) {
|
||||
ret = PTR_ERR(vreg_info->reg);
|
||||
vreg_info->reg = NULL;
|
||||
pr_err("%s: regulator_get(%s) failed. rc=%d\n",
|
||||
__func__, vreg_info->name, ret);
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue