diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-09 13:30:27 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-10 14:08:53 -0400 |
commit | e7b26d12cd44cff6ad25db7896ed4c2e1f1848ae (patch) | |
tree | f6297b1fb656e043892324230396697d35a760d5 /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
parent | e2b84e4be37462e77f34b5bd057d2483fcd3ca98 (diff) | |
download | linux-e7b26d12cd44cff6ad25db7896ed4c2e1f1848ae.tar.gz linux-e7b26d12cd44cff6ad25db7896ed4c2e1f1848ae.tar.bz2 linux-e7b26d12cd44cff6ad25db7896ed4c2e1f1848ae.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
-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, "AMDGPU i2c hw bus %s", name); i2c->adapter.algo = &amdgpu_atombios_i2c_algo; ret = i2c_add_adapter(&i2c->adapter); - if (ret) { - DRM_ERROR("Failed to register hw i2c %s\n", name); + if (ret) goto out_free; - } } else { /* set the amdgpu bit adapter */ snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), |