projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bd728
)
rk2926:m713:slove io conflict for act8931 and tps65910
author
张晴
<zhangqing@rock-chips.com>
Wed, 17 Oct 2012 09:55:43 +0000
(17:55 +0800)
committer
张晴
<zhangqing@rock-chips.com>
Wed, 17 Oct 2012 09:55:43 +0000
(17:55 +0800)
drivers/mfd/tps65910.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/tps65910.c
b/drivers/mfd/tps65910.c
index 6b16534548ad24d24bf4860ca2bda08488a2298d..181d68aa59025d39c94f094792a2586ea43437bb 100755
(executable)
--- a/
drivers/mfd/tps65910.c
+++ b/
drivers/mfd/tps65910.c
@@
-268,6
+268,12
@@
static int tps65910_i2c_probe(struct i2c_client *i2c,
NULL, 0);
if (ret < 0)
goto err;
+
+ ret = tps65910_reg_read(tps65910,0x22);
+ if ((ret < 0) || (ret == 0xff)){
+ printk("The device is not tps65910\n");
+ goto err;
+ }
g_tps65910 = tps65910;