drm/radeon/kms: Fix device tree linkage of i2c buses
authorJean Delvare <jdelvare@suse.de>
Sat, 28 Jan 2012 10:10:38 +0000 (11:10 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jan 2012 09:32:11 +0000 (09:32 +0000)
commit1ffd57c1da2a73b0a0e5cd7a6dd52cc49e36bef9
tree4e986ab45ce4cc7a6b1ad763a70d761f2330b1b0
parentdd8bc93d45c0ac4f64bf074d4be72418aac1609b
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>
drivers/gpu/drm/radeon/radeon_i2c.c