RE: Exynos4: Fix the I2C.0 platform device's ID to 0 in the devs.c

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

 



and Ping again?

> -----Original Message-----
> From: HeungJun, Kim [mailto:riverful.kim@xxxxxxxxxxx]
> Sent: Monday, April 30, 2012 8:25 PM
> To: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> Cc: linux-samsung-soc@xxxxxxxxxxxxxxx; HeungJun, Kim; Kyungmin Park
> Subject: ARM: Exynos4: Fix the I2C.0 platform device's ID to 0 in the devs.c
> 
> From: "HeungJun, Kim" <riverful.kim@xxxxxxxxxxx>
> 
> The #ifdef of CONFIG_S3C_DEV_I2C1 in devs.c, occurs to fail to get I2C0
adapter.
> So, this patch removes #ifdef, and fixes 0 when I2C0 devices.
> 
> Signed-off-by: HeungJun, Kim <riverful.kim@xxxxxxxxxxx>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> ---
>  arch/arm/plat-samsung/devs.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
> index db32ec5..964a866 100644
> --- a/arch/arm/plat-samsung/devs.c
> +++ b/arch/arm/plat-samsung/devs.c
> @@ -491,11 +491,7 @@ static struct resource s3c_i2c0_resource[] = {
> 
>  struct platform_device s3c_device_i2c0 = {
>  	.name		= "s3c2410-i2c",
> -#ifdef CONFIG_S3C_DEV_I2C1
>  	.id		= 0,
> -#else
> -	.id		= -1,
> -#endif
>  	.num_resources	= ARRAY_SIZE(s3c_i2c0_resource),
>  	.resource	= s3c_i2c0_resource,
>  };
> --
> 1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux