i2c->gpios[] is being used to free_gpios but it's not getting initialized. Signed-off-by: Inderpal Singh <inderpal.singh@xxxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html