diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-09 07:36:17 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-08-22 02:19:55 -0400 |
commit | ea734404f3daf1f6b5103171d848c9d4641fd96b (patch) | |
tree | 70087639f73af7b0519fd70fc8b448bed0284b53 /drivers/i2c/busses/i2c-nomadik.c | |
parent | fa8410b355251fd30341662a40ac6b22d3e38468 (diff) |
i2c: don't print error when adding adapter fails
The core will do this for us now.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-nomadik.c')
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index bcd17e8cbcb4..da6609d62848 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c | |||
@@ -1046,10 +1046,8 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id) | |||
1046 | adap->name, dev->virtbase); | 1046 | adap->name, dev->virtbase); |
1047 | 1047 | ||
1048 | ret = i2c_add_adapter(adap); | 1048 | ret = i2c_add_adapter(adap); |
1049 | if (ret) { | 1049 | if (ret) |
1050 | dev_err(&adev->dev, "failed to add adapter\n"); | ||
1051 | goto err_no_adap; | 1050 | goto err_no_adap; |
1052 | } | ||
1053 | 1051 | ||
1054 | pm_runtime_put(&adev->dev); | 1052 | pm_runtime_put(&adev->dev); |
1055 | 1053 | ||