summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJean Delvare2012-01-28 11:10:38 +0100
committerDave Airlie2012-01-30 10:32:11 +0100
commit1ffd57c1da2a73b0a0e5cd7a6dd52cc49e36bef9 (patch)
tree4e986ab45ce4cc7a6b1ad763a70d761f2330b1b0 /drivers/gpu
parentdrm: Pass the real error code back during GEM bo initialisation (diff)
downloadkernel-qcow2-linux-1ffd57c1da2a73b0a0e5cd7a6dd52cc49e36bef9.tar.gz
kernel-qcow2-linux-1ffd57c1da2a73b0a0e5cd7a6dd52cc49e36bef9.tar.xz
kernel-qcow2-linux-1ffd57c1da2a73b0a0e5cd7a6dd52cc49e36bef9.zip
drm/radeon/kms: Fix device tree linkage of i2c buses
Properly set the parent device of i2c buses before registering them so that they will show at the right place in the device tree (rather than in /sys/devices directly.) Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Dave Airlie <airlied@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c
index 7bb1b079f480..e2a393ff0c44 100644
--- a/drivers/gpu/drm/radeon/radeon_i2c.c
+++ b/drivers/gpu/drm/radeon/radeon_i2c.c
@@ -897,6 +897,7 @@ struct radeon_i2c_chan *radeon_i2c_create(struct drm_device *dev,
i2c->rec = *rec;
i2c->adapter.owner = THIS_MODULE;
i2c->adapter.class = I2C_CLASS_DDC;
+ i2c->adapter.dev.parent = &dev->pdev->dev;
i2c->dev = dev;
i2c_set_adapdata(&i2c->adapter, i2c);
if (rec->mm_i2c ||