drm/radeon/kms: Skip ACPI call to ATIF when possible
authorJean Delvare <jdelvare@suse.de>
Wed, 30 Nov 2011 16:36:39 +0000 (17:36 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Dec 2011 09:57:34 +0000 (09:57 +0000)
commit48cc9b2c7dae377e39836c0a88dd1c5ba5566d17
tree2bf8a0c88ddc3f74891cc9ded731ed45a6eb5ea3
parentbc96f9424b0e95f2451398007be46824f93866d0
drm/radeon/kms: Skip ACPI call to ATIF when possible

I am under the impression that it only makes sense to call the ATIF
method if the graphics device has an ACPI handle attached. So we could
skip the call altogether if there is no such handle.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_acpi.c