diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drm_drv.h b/linux/drm_drv.h index d5274094..00aa1871 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -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 } } |