diff options
| author | Felix Geyer <debfx-pkg@fobos.de> | 2009-09-11 00:04:07 +0200 |
|---|---|---|
| committer | Felix Geyer <debfx-pkg@fobos.de> | 2009-09-11 00:04:07 +0200 |
| commit | 336ae01f5ec82f76ff58ba86dacbb4f66116e7b8 (patch) | |
| tree | dd973a6b7d381cb5c6921dca61f1eb50c1c1dbfa /src/VBox/Additions/linux/drm | |
| parent | fd321f7f2afeecd1066ed399b8c33aed3964b228 (diff) | |
| download | virtualbox-336ae01f5ec82f76ff58ba86dacbb4f66116e7b8.tar.gz | |
Imported Upstream version 3.0.6-dfsgupstream/3.0.6-dfsg
Stripping most dirs from src/VBox/Additions/x11/x11include
Diffstat (limited to 'src/VBox/Additions/linux/drm')
| -rw-r--r-- | src/VBox/Additions/linux/drm/vboxvideo_drm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/VBox/Additions/linux/drm/vboxvideo_drm.c b/src/VBox/Additions/linux/drm/vboxvideo_drm.c index 5cfd08247..5ad64897a 100644 --- a/src/VBox/Additions/linux/drm/vboxvideo_drm.c +++ b/src/VBox/Additions/linux/drm/vboxvideo_drm.c @@ -66,8 +66,18 @@ static struct pci_device_id pciidlist[] = { vboxvideo_PCI_IDS }; +int vboxvideo_driver_load(struct drm_device * dev, unsigned long flags) +{ +# if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 28) + return drm_vblank_init(dev, 1); +#else + return 0; +#endif +} + static struct drm_driver driver = { /* .driver_features = DRIVER_USE_MTRR, */ + .load = vboxvideo_driver_load, .reclaim_buffers = drm_core_reclaim_buffers, .get_map_ofs = drm_core_get_map_ofs, .get_reg_ofs = drm_core_get_reg_ofs, |
