dirty hack to make mach64 work, (don't worry I'll get around to fixing it

asap..)
main
Dave Airlie 2004-06-12 02:30:52 +00:00
parent 373d67702c
commit 1ee210e3b5
2 changed files with 8 additions and 0 deletions

View File

@ -708,14 +708,18 @@ static int __init drm_init( void )
pdev = pci_get_subsys(DRM(pciidlist[i]).vendor, DRM(pciidlist[i]).device, DRM(pciidlist[i]).subvendor, DRM(pciidlist[i]).subdevice, NULL); pdev = pci_get_subsys(DRM(pciidlist[i]).vendor, DRM(pciidlist[i]).device, DRM(pciidlist[i]).subvendor, DRM(pciidlist[i]).subdevice, NULL);
if (pdev) if (pdev)
{ {
#ifndef __MACH64_H__
pdriver = pci_dev_driver(pdev); pdriver = pci_dev_driver(pdev);
if (pdriver) if (pdriver)
{ {
#endif
DRM(fb_loaded)=1; DRM(fb_loaded)=1;
drm_probe(pdev, &DRM(pciidlist[i])); drm_probe(pdev, &DRM(pciidlist[i]));
#ifndef __MACH64_H__
} }
else else
pci_dev_put(pdev); pci_dev_put(pdev);
#endif
} }
} }

View File

@ -708,14 +708,18 @@ static int __init drm_init( void )
pdev = pci_get_subsys(DRM(pciidlist[i]).vendor, DRM(pciidlist[i]).device, DRM(pciidlist[i]).subvendor, DRM(pciidlist[i]).subdevice, NULL); pdev = pci_get_subsys(DRM(pciidlist[i]).vendor, DRM(pciidlist[i]).device, DRM(pciidlist[i]).subvendor, DRM(pciidlist[i]).subdevice, NULL);
if (pdev) if (pdev)
{ {
#ifndef __MACH64_H__
pdriver = pci_dev_driver(pdev); pdriver = pci_dev_driver(pdev);
if (pdriver) if (pdriver)
{ {
#endif
DRM(fb_loaded)=1; DRM(fb_loaded)=1;
drm_probe(pdev, &DRM(pciidlist[i])); drm_probe(pdev, &DRM(pciidlist[i]));
#ifndef __MACH64_H__
} }
else else
pci_dev_put(pdev); pci_dev_put(pdev);
#endif
} }
} }