dirty hack to make mach64 work, (don't worry I'll get around to fixing it
asap..)main
parent
373d67702c
commit
1ee210e3b5
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue