projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f9ce30
)
pmic: tps65090: correct checking i2c bus
author
Jeroen Hofstee
<jeroen@myspectrum.nl>
Sun, 15 Jun 2014 15:17:04 +0000
(17:17 +0200)
committer
Tom Rini
<trini@ti.com>
Thu, 19 Jun 2014 15:19:05 +0000
(11:19 -0400)
The function tps65090_init checks the i2c bus of p->bus. However
the pointer p is not intialiased at this point. Check the local
variable bus instead.
cc: Tom Wai-Hong Tam <waihong@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/power/pmic/pmic_tps65090.c
patch
|
blob
|
history
diff --git
a/drivers/power/pmic/pmic_tps65090.c
b/drivers/power/pmic/pmic_tps65090.c
index c5b396610ac3ecec91c22ffeaf600c723299fb9b..337903acec8a56c493c32543cafbe978fd8f3b2e 100644
(file)
--- a/
drivers/power/pmic/pmic_tps65090.c
+++ b/
drivers/power/pmic/pmic_tps65090.c
@@
-285,7
+285,7
@@
int tps65090_init(void)
}
bus = i2c_get_bus_num_fdt(parent);
- if (
p->
bus < 0) {
+ if (bus < 0) {
debug("%s: Cannot find I2C bus\n", __func__);
return -ENOENT;
}