drm/radeon/kms: simplify hotplug handler logic
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 20 May 2011 08:34:29 +0000 (04:34 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 20 May 2011 10:02:33 +0000 (20:02 +1000)
In the hotplug handler, just use the drm dpms functions.
If the monitor is plugged in, turn it on, if it's not,
turn it off.  This also reduces power usage by turning
off the encoder and crtc when the monitor is unplugged.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found