remove pci_find_class use for alpha
parent
f5c81b2620
commit
cd16d96856
|
@ -282,9 +282,11 @@ static int drm_open_helper(struct inode *inode, struct file *filp, drm_device_t
|
||||||
*/
|
*/
|
||||||
if (!dev->hose) {
|
if (!dev->hose) {
|
||||||
struct pci_dev *pci_dev;
|
struct pci_dev *pci_dev;
|
||||||
pci_dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, NULL);
|
pci_dev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, NULL);
|
||||||
if (pci_dev)
|
if (pci_dev) {
|
||||||
dev->hose = pci_dev->sysdata;
|
dev->hose = pci_dev->sysdata;
|
||||||
|
pci_dev_put(pci_dev);
|
||||||
|
}
|
||||||
if (!dev->hose) {
|
if (!dev->hose) {
|
||||||
struct pci_bus *b = pci_bus_b(pci_root_buses.next);
|
struct pci_bus *b = pci_bus_b(pci_root_buses.next);
|
||||||
if (b)
|
if (b)
|
||||||
|
|
Loading…
Reference in New Issue