summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2009-06-10 19:56:00 +0000
committerLen Brown <len.brown@intel.com>2009-06-17 23:32:23 -0400
commit1e4cffe78e1decd937c7b78410eec87da6b87954 (patch)
tree490fd4c70ec4fd32603456a556cc3268f0b9cf9f /drivers/acpi/video.c
parent80ffdedf6020a77adcd06c01cfe6c488312b28f8 (diff)
downloadkernel-crypto-1e4cffe78e1decd937c7b78410eec87da6b87954.tar.gz
kernel-crypto-1e4cffe78e1decd937c7b78410eec87da6b87954.tar.xz
kernel-crypto-1e4cffe78e1decd937c7b78410eec87da6b87954.zip
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 1bdfb37377e..5adbf9361e6 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)
static int acpi_video_bus_check(struct acpi_video_bus *video)
{
acpi_status status = -ENOENT;
- struct device *dev;
+ struct pci_dev *dev;
if (!video)
return -EINVAL;
- dev = acpi_get_physical_pci_device(video->device->handle);
+ dev = acpi_get_pci_dev(video->device->handle);
if (!dev)
return -ENODEV;
- put_device(dev);
+ pci_dev_put(dev);
/* Since there is no HID, CID and so on for VGA driver, we have
* to check well known required nodes.