public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: s3c2410: Initialize i2c->gpios[] with requested gpio lines
@ 2012-12-27  4:09 Inderpal Singh
       [not found] ` <1356581384-23063-1-git-send-email-inderpal.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Inderpal Singh @ 2012-12-27  4:09 UTC (permalink / raw)
  To: linux-i2c
  Cc: linux-samsung-soc, kgene.kim, ben-linux, thomas.abraham, patches

i2c->gpios[] is being used to free_gpios but it's not getting initialized.

Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
---
 drivers/i2c/busses/i2c-s3c2410.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c
index a290d08..f1d1f1e 100644
--- a/drivers/i2c/busses/i2c-s3c2410.c
+++ b/drivers/i2c/busses/i2c-s3c2410.c
@@ -875,6 +875,8 @@ static int s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c)
 			dev_err(i2c->dev, "gpio [%d] request failed\n", gpio);
 			goto free_gpio;
 		}
+
+		i2c->gpios[idx] = gpio;
 	}
 	return 0;
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-27  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-27  4:09 [PATCH 1/2] i2c: s3c2410: Initialize i2c->gpios[] with requested gpio lines Inderpal Singh
     [not found] ` <1356581384-23063-1-git-send-email-inderpal.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-12-27  4:09   ` [PATCH 2/2] i2c: s3c2410: free gpios in suspend function Inderpal Singh
2012-12-27  4:38     ` Inderpal Singh
2012-12-27  4:39   ` [PATCH 1/2] i2c: s3c2410: Initialize i2c->gpios[] with requested gpio lines Inderpal Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox