projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aedc256
)
i2c: s3c2410: Fix code to free gpios
author
Abhilash Kesavan
<a.kesavan@samsung.com>
Mon, 19 Nov 2012 10:18:46 +0000
(15:48 +0530)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Mon, 19 Nov 2012 10:55:39 +0000
(11:55 +0100)
Store the requested gpios so that they can be freed on error/removal.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-s3c2410.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-s3c2410.c
b/drivers/i2c/busses/i2c-s3c2410.c
index
3e0335f
..
9d90272
100644
(file)
--- a/
drivers/i2c/busses/i2c-s3c2410.c
+++ b/
drivers/i2c/busses/i2c-s3c2410.c
@@
-806,6
+806,7
@@
static int s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c)
dev_err(i2c->dev, "invalid gpio[%d]: %d\n", idx, gpio);
goto free_gpio;
}
+ i2c->gpios[idx] = gpio;
ret = gpio_request(gpio, "i2c-bus");
if (ret) {