]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-s3c2410: Fix return code of s3c24xx_i2c_parse_dt_gpio
authorTushar Behera <tushar.behera@linaro.org>
Fri, 9 Dec 2011 10:03:55 +0000 (15:33 +0530)
committerBen Dooks <ben-linux@fluff.org>
Sun, 18 Dec 2011 11:44:49 +0000 (11:44 +0000)
commit8e5226e8c8a0b7036875057dad003aa11a76c764
tree1564c871fa735b1c16713a08d2df95e3cf1f01f2
parentd7659f2ce34d5e3c9cec20326ca3133ec0aa7ac8
i2c-s3c2410: Fix return code of s3c24xx_i2c_parse_dt_gpio

s3c24xx_i2c_parse_dt_gpio is called when cfg_gpio is not defined
in the platform data of the i2c device. When DT is not enabled,
the above function always returns -EINVAL. Since there can be
some i2c devices which don't need to configure any gpio lines,
the probe of such devices would fail here. Changing the default
return value to success would fix this issue.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-s3c2410.c