mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
regulator: da9055: Fix checking wrong value in da9055_gpio_init
Check pdata->gpio_rsel && pdata->gpio_rsel[id] for the case GPI pin is muxed with regulator to select the regulator register set A/B for voltage ramping. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
f6130be652
commit
26cbd30733
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@ static __devinit int da9055_gpio_init(struct da9055_regulator *regulator,
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (pdata->gpio_rsel && pdata->gpio_ren[id]) {
|
||||
if (pdata->gpio_rsel && pdata->gpio_rsel[id]) {
|
||||
char name[18];
|
||||
int gpio_mux = pdata->gpio_rsel[id];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue