projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5c81b2
)
remove pci_find_class use for alpha
author
Dave Airlie
<airlied@linux.ie>
Sun, 18 Sep 2005 09:31:06 +0000
(09:31 +0000)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 18 Sep 2005 09:31:06 +0000
(09:31 +0000)
linux-core/drm_fops.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_fops.c
b/linux-core/drm_fops.c
index
d7befb8
..
60da7ae
100644
(file)
--- 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)