summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
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
}
}