projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b84e4
)
gpu: drm: amd: amdgpu: amdgpu_i2c: don't print error when adding adapter fails
author
Wolfram Sang
<
[email protected]
>
Tue, 9 Aug 2016 11:30:27 +0000
(13:30 +0200)
committer
Alex Deucher
<
[email protected]
>
Wed, 10 Aug 2016 18:08:53 +0000
(14:08 -0400)
The core will do this for us now.
Signed-off-by: Wolfram Sang <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
index 31a676376d732aba3d2d15dd8dfe2af24be7f56b..c93a92a840ead18b8e1dd71547f922fad4ebc3ae 100644
(file)
--- 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),