GPU/i915: Fix acpi_bus_get_device() check in drivers/gpu/drm/i915/intel_opregion.c
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Fri, 1 Feb 2013 01:14:20 +0000 (10:14 +0900)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 1 Feb 2013 10:01:50 +0000 (11:01 +0100)
acpi_bus_get_device() returns int not acpi_status.

The patch change not to apply ACPI_FAILURE() to the return value of
acpi_bus_get_device().

Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_opregion.c

index 7741c22c934cc7d38528a7cf738d5885c05289a2..4d338740f2cb8332ec1d86970b9bee26049b1744 100644 (file)
@@ -347,7 +347,7 @@ static void intel_didl_outputs(struct drm_device *dev)
        int i = 0;
 
        handle = DEVICE_ACPI_HANDLE(&dev->pdev->dev);
-       if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &acpi_dev)))
+       if (!handle || acpi_bus_get_device(handle, &acpi_dev))
                return;
 
        if (acpi_is_video_device(acpi_dev))