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:
1d5b1aa
)
i2c: check_idle: gpio_free
author
kfx
<kfx@rock-chips.com>
Tue, 8 Jan 2013 09:18:46 +0000
(17:18 +0800)
committer
kfx
<kfx@rock-chips.com>
Tue, 8 Jan 2013 09:18:46 +0000
(17:18 +0800)
drivers/i2c/busses/i2c-rk30-adapter.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-rk30-adapter.c
b/drivers/i2c/busses/i2c-rk30-adapter.c
index 88e1ea62aa1ce07b870be2855ff5687b71618f8f..4f71bf80ee8fa3297267688d6882092b57657aa3 100755
(executable)
--- a/
drivers/i2c/busses/i2c-rk30-adapter.c
+++ b/
drivers/i2c/busses/i2c-rk30-adapter.c
@@
-134,6
+134,9
@@
static int rk30_i2c_check_idle(struct rk30_i2c *i2c)
sda_lev = gpio_get_value(sda_io);
scl_lev = gpio_get_value(scl_io);
+ gpio_free(sda_io);
+ gpio_free(scl_io);
+
iomux_set(i2c->sda_mode);
iomux_set(i2c->scl_mode);