VirtualBox

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


Ignore:
Timestamp:
Jul 14, 2014 7:20:14 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94989
Message:

Additions/linux/drm: small fix to work with Linux 3.16.

File:
1 edited

Legend:

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

    r50946 r52017  
    6363#endif
    6464
     65/* The first of these was introduced when drm was generalised to work with
     66 * non-PCI buses, but was removed between 3.15 and 3.16.  The second is a
     67 * random definition introduced in the mean-time. */
     68#if defined(DRIVER_BUS_PCI) || defined(DRIVER_PRIME)
     69# define DRM_NEW_BUS_INIT 1
     70#endif
     71
    6572static struct pci_device_id pciidlist[] = {
    6673        vboxvideo_PCI_IDS
     
    110117    .fops = &driver_fops,
    111118#endif
    112 #ifndef DRIVER_BUS_PCI
     119#ifndef DRM_NEW_BUS_INIT
    113120    .pci_driver =
    114121    {
     
    125132};
    126133
    127 #ifdef DRIVER_BUS_PCI
     134#ifdef DRM_NEW_BUS_INIT
    128135static struct pci_driver pci_driver =
    129136{
     
    135142static int __init vboxvideo_init(void)
    136143{
    137 #ifndef DRIVER_BUS_PCI
     144#ifndef DRM_NEW_BUS_INIT
    138145    return drm_init(&driver);
    139146#else
     
    144151static void __exit vboxvideo_exit(void)
    145152{
    146 #ifndef DRIVER_BUS_PCI
     153#ifndef DRM_NEW_BUS_INIT
    147154    drm_exit(&driver);
    148155#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