drm/radeon/kms: move active_device setup into encoder fixup()
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 14 Oct 2009 06:00:42 +0000 (02:00 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Oct 2009 00:30:23 +0000 (10:30 +1000)
commit8c2a6d730400e14bf28ccfa11b9bbf453db775ec
treee62b5d600ae2bee724568d63ad3c27c8e072db6c
parentfb06ca8f8c61dfd7cbfa2092756577ff78a26dcd
drm/radeon/kms: move active_device setup into encoder fixup()

radeon_encoder->active_device defines the active routing
between the encoder and connector.  The encoder fixup and
dpms functions need to know the active_device to function
properly.  Setting active_device in the prepare hook was
too late in some cases.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_legacy_encoders.c