projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
regulator
/
aat2870-regulator.c
diff --git
a/drivers/regulator/aat2870-regulator.c
b/drivers/regulator/aat2870-regulator.c
index 5abeb3ac3e8da43df3d58bf677c3ac0e3d17116e..298c6c6a279574561eb24f329b115fe134d274a1 100644
(file)
--- a/
drivers/regulator/aat2870-regulator.c
+++ b/
drivers/regulator/aat2870-regulator.c
@@
-160,7
+160,7
@@
static struct aat2870_regulator *aat2870_get_regulator(int id)
break;
}
- if (
!ri
)
+ if (
i == ARRAY_SIZE(aat2870_regulators)
)
return NULL;
ri->enable_addr = AAT2870_LDO_EN;