diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/video.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 9577b6fa2650..66e8f7333e9b 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -1745,6 +1745,7 @@ static int acpi_video_bus_remove(struct acpi_device *device, int type) | |||
1745 | 1745 | ||
1746 | static int __init intel_opregion_present(void) | 1746 | static int __init intel_opregion_present(void) |
1747 | { | 1747 | { |
1748 | int i915 = 0; | ||
1748 | #if defined(CONFIG_DRM_I915) || defined(CONFIG_DRM_I915_MODULE) | 1749 | #if defined(CONFIG_DRM_I915) || defined(CONFIG_DRM_I915_MODULE) |
1749 | struct pci_dev *dev = NULL; | 1750 | struct pci_dev *dev = NULL; |
1750 | u32 address; | 1751 | u32 address; |
@@ -1757,10 +1758,10 @@ static int __init intel_opregion_present(void) | |||
1757 | pci_read_config_dword(dev, 0xfc, &address); | 1758 | pci_read_config_dword(dev, 0xfc, &address); |
1758 | if (!address) | 1759 | if (!address) |
1759 | continue; | 1760 | continue; |
1760 | return 1; | 1761 | i915 = 1; |
1761 | } | 1762 | } |
1762 | #endif | 1763 | #endif |
1763 | return 0; | 1764 | return i915; |
1764 | } | 1765 | } |
1765 | 1766 | ||
1766 | int acpi_video_register(void) | 1767 | int acpi_video_register(void) |