diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-09 07:30:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-10 14:08:53 -0400 |
commit | e7b26d12cd44cff6ad25db7896ed4c2e1f1848ae (patch) | |
tree | f6297b1fb656e043892324230396697d35a760d5 | |
parent | e2b84e4be37462e77f34b5bd057d2483fcd3ca98 (diff) |
gpu: drm: amd: amdgpu: amdgpu_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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c index 31a676376d73..c93a92a840ea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |||
@@ -186,10 +186,8 @@ struct amdgpu_i2c_chan *amdgpu_i2c_create(struct drm_device *dev, | |||
186 | "AMDGPU i2c hw bus %s", name); | 186 | "AMDGPU i2c hw bus %s", name); |
187 | i2c->adapter.algo = &amdgpu_atombios_i2c_algo; | 187 | i2c->adapter.algo = &amdgpu_atombios_i2c_algo; |
188 | ret = i2c_add_adapter(&i2c->adapter); | 188 | ret = i2c_add_adapter(&i2c->adapter); |
189 | if (ret) { | 189 | if (ret) |
190 | DRM_ERROR("Failed to register hw i2c %s\n", name); | ||
191 | goto out_free; | 190 | goto out_free; |
192 | } | ||
193 | } else { | 191 | } else { |
194 | /* set the amdgpu bit adapter */ | 192 | /* set the amdgpu bit adapter */ |
195 | snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), | 193 | snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), |