Re: [PATCH 1/2] i2c: s3c2410: Initialize i2c->gpios[] with requested gpio lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27 December 2012 09:39, Inderpal Singh <inderpal.singh@xxxxxxxxxx> wrote:
> 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
>

Please ignore this patch as this has been sent already at

http://www.mail-archive.com/linux-i2c@xxxxxxxxxxxxxxx/msg10781.html

Sorry for the noise !!!
--
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


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux