diff options
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1bdfb37377e3..5adbf9361e60 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -1054,15 +1054,15 @@ static void acpi_video_bus_find_cap(struct acpi_video_bus *video) | |||
1054 | static int acpi_video_bus_check(struct acpi_video_bus *video) | 1054 | static int acpi_video_bus_check(struct acpi_video_bus *video) |
1055 | { | 1055 | { |
1056 | acpi_status status = -ENOENT; | 1056 | acpi_status status = -ENOENT; |
1057 | struct device *dev; | 1057 | struct pci_dev *dev; |
1058 | 1058 | ||
1059 | if (!video) | 1059 | if (!video) |
1060 | return -EINVAL; | 1060 | return -EINVAL; |
1061 | 1061 | ||
1062 | dev = acpi_get_physical_pci_device(video->device->handle); | 1062 | dev = acpi_get_pci_dev(video->device->handle); |
1063 | if (!dev) | 1063 | if (!dev) |
1064 | return -ENODEV; | 1064 | return -ENODEV; |
1065 | put_device(dev); | 1065 | pci_dev_put(dev); |
1066 | 1066 | ||
1067 | /* Since there is no HID, CID and so on for VGA driver, we have | 1067 | /* Since there is no HID, CID and so on for VGA driver, we have |
1068 | * to check well known required nodes. | 1068 | * to check well known required nodes. |