Browse Source

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>
Wolfram Sang 9 years ago
parent
commit
e7b26d12cd
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c

+ 1 - 3
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);
 			 "AMDGPU i2c hw bus %s", name);
 		i2c->adapter.algo = &amdgpu_atombios_i2c_algo;
 		i2c->adapter.algo = &amdgpu_atombios_i2c_algo;
 		ret = i2c_add_adapter(&i2c->adapter);
 		ret = i2c_add_adapter(&i2c->adapter);
-		if (ret) {
-			DRM_ERROR("Failed to register hw i2c %s\n", name);
+		if (ret)
 			goto out_free;
 			goto out_free;
-		}
 	} else {
 	} else {
 		/* set the amdgpu bit adapter */
 		/* set the amdgpu bit adapter */
 		snprintf(i2c->adapter.name, sizeof(i2c->adapter.name),
 		snprintf(i2c->adapter.name, sizeof(i2c->adapter.name),