aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_fops.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-09-18 09:31:06 +0000
committerDave Airlie <airlied@linux.ie>2005-09-18 09:31:06 +0000
commitcd16d9685678dbb7e3d1442e62357d0b5bb98008 (patch)
tree63d63f240719162b1caf5104cc1f21857218e281 /linux-core/drm_fops.c
parentf5c81b262020200d4b7970d12b6c202ae0f8faee (diff)
remove pci_find_class use for alpha
Diffstat (limited to 'linux-core/drm_fops.c')
-rw-r--r--linux-core/drm_fops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index d7befb80..60da7ae9 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -282,9 +282,11 @@ static int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t
*/
if (!dev->hose) {
struct pci_dev *pci_dev;
- pci_dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, NULL);
- if (pci_dev)
+ pci_dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, NULL);
+ if (pci_dev) {
dev->hose = pci_dev->sysdata;
+ pci_dev_put(pci_dev);
+ }
if (!dev->hose) {
struct pci_bus *b = pci_bus_b(pci_root_buses.next);
if (b)