projects
/
karo-tx-uboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1f06e66
)
karo: tx6: return -EINVAL from tx6_pmic_init() if no PMIC is configured
KARO-TX6-2015-03-24
author
Lothar Waßmann
<LW@KARO-electronics.de>
Tue, 24 Mar 2015 14:00:14 +0000
(15:00 +0100)
committer
Lothar Waßmann
<LW@KARO-electronics.de>
Tue, 24 Mar 2015 14:00:14 +0000
(15:00 +0100)
board/karo/tx6/pmic.c
patch
|
blob
|
history
diff --git
a/board/karo/tx6/pmic.c
b/board/karo/tx6/pmic.c
index
bf31990
..
2743dad
100644
(file)
--- a/
board/karo/tx6/pmic.c
+++ b/
board/karo/tx6/pmic.c
@@
-16,6
+16,7
@@
*/
#include <common.h>
*/
#include <common.h>
+#include <errno.h>
#include <i2c.h>
#include "pmic.h"
#include <i2c.h>
#include "pmic.h"
@@
-37,7
+38,7
@@
static struct {
int tx6_pmic_init(void)
{
int tx6_pmic_init(void)
{
- int ret;
+ int ret
= -ENODEV
;
int i;
for (i = 0; i < ARRAY_SIZE(i2c_addrs); i++) {
int i;
for (i = 0; i < ARRAY_SIZE(i2c_addrs); i++) {