提交 88afb9e6 编写于 作者: W Wolfram Sang 提交者: Alex Deucher

gpu: drm: radeon: radeon_i2c: don't print error when adding adapter fails

The core will do this for us now.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 e7b26d12
...@@ -938,10 +938,8 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev, ...@@ -938,10 +938,8 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,
"Radeon i2c hw bus %s", name); "Radeon i2c hw bus %s", name);
i2c->adapter.algo = &radeon_i2c_algo; i2c->adapter.algo = &radeon_i2c_algo;
ret = i2c_add_adapter(&i2c->adapter); ret = i2c_add_adapter(&i2c->adapter);
if (ret) { if (ret)
DRM_ERROR("Failed to register hw i2c %s\n", name);
goto out_free; goto out_free;
}
} else if (rec->hw_capable && } else if (rec->hw_capable &&
radeon_hw_i2c && radeon_hw_i2c &&
ASIC_IS_DCE3(rdev)) { ASIC_IS_DCE3(rdev)) {
...@@ -950,10 +948,8 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev, ...@@ -950,10 +948,8 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,
"Radeon i2c hw bus %s", name); "Radeon i2c hw bus %s", name);
i2c->adapter.algo = &radeon_atom_i2c_algo; i2c->adapter.algo = &radeon_atom_i2c_algo;
ret = i2c_add_adapter(&i2c->adapter); ret = i2c_add_adapter(&i2c->adapter);
if (ret) { if (ret)
DRM_ERROR("Failed to register hw i2c %s\n", name);
goto out_free; goto out_free;
}
} else { } else {
/* set the radeon bit adapter */ /* set the radeon bit adapter */
snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), snprintf(i2c->adapter.name, sizeof(i2c->adapter.name),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册