aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r--drivers/acpi/video.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index a29b0ccac65a..6597c2a37c36 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -842,11 +842,16 @@ static void acpi_video_bus_find_cap(struct acpi_video_bus *video)
842static int acpi_video_bus_check(struct acpi_video_bus *video) 842static int acpi_video_bus_check(struct acpi_video_bus *video)
843{ 843{
844 acpi_status status = -ENOENT; 844 acpi_status status = -ENOENT;
845 845 struct device *dev;
846 846
847 if (!video) 847 if (!video)
848 return -EINVAL; 848 return -EINVAL;
849 849
850 dev = acpi_get_physical_pci_device(video->device->handle);
851 if (!dev)
852 return -ENODEV;
853 put_device(dev);
854
850 /* Since there is no HID, CID and so on for VGA driver, we have 855 /* Since there is no HID, CID and so on for VGA driver, we have
851 * to check well known required nodes. 856 * to check well known required nodes.
852 */ 857 */