VirtualBox

Changeset 49428 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Nov 8, 2013 5:05:25 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90512
Message:

Additions/linux/drm: better RHEL61 fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c

    r48422 r49428  
    156156    .fops = &driver_fops,
    157157#endif
    158 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61)
     158#ifndef DRIVER_BUS_PCI
    159159    .pci_driver =
    160160    {
     
    171171};
    172172
    173 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39) || defined(DRM_RHEL61)
     173#ifdef DRIVER_BUS_PCI
    174174static struct pci_driver pci_driver =
    175175{
     
    181181static int __init vboxvideo_init(void)
    182182{
    183 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61)
     183#ifndef DRIVER_BUS_PCI
    184184    return drm_init(&driver);
    185185#else
     
    190190static void __exit vboxvideo_exit(void)
    191191{
    192 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(DRM_RHEL61)
     192#ifndef DRIVER_BUS_PCI
    193193    drm_exit(&driver);
    194194#else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette