summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-06-12 02:30:52 +0000
committerDave Airlie <airlied@linux.ie>2004-06-12 02:30:52 +0000
commit1ee210e3b5b2d0b9101e371ec1401cdc34b2f25d (patch)
treecbed9014d00942a5624a8a17559e928c5f02b13c /linux-core
parent373d67702c1fd6c6258ce03d3fb4fc167ff947cb (diff)
dirty hack to make mach64 work, (don't worry I'll get around to fixing it
asap..)
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index d5274094..00aa1871 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -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);
if (pdev)
{
+#ifndef __MACH64_H__
pdriver = pci_dev_driver(pdev);
if (pdriver)
{
+#endif
DRM(fb_loaded)=1;
drm_probe(pdev, &DRM(pciidlist[i]));
+#ifndef __MACH64_H__
}
else
pci_dev_put(pdev);
+#endif
}
}