aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2009-06-10 15:56:00 -0400
committerLen Brown <len.brown@intel.com>2009-06-17 23:32:23 -0400
commit1e4cffe78e1decd937c7b78410eec87da6b87954 (patch)
tree490fd4c70ec4fd32603456a556cc3268f0b9cf9f /drivers/acpi/video.c
parent80ffdedf6020a77adcd06c01cfe6c488312b28f8 (diff)
ACPI: video: convert to acpi_get_pci_dev
Now that acpi_get_pci_dev is available, let's use it instead of acpi_get_physical_pci_device() Cc: Thomas Renninger <trenn@suse.de> Signed-off-by: Alex Chiang <achiang@hp.com> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r--drivers/acpi/video.c6
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)
1054static int acpi_video_bus_check(struct acpi_video_bus *video) 1054static 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.