Changeset 60104 in vbox for trunk/src/VBox
- Timestamp:
- Mar 18, 2016 7:20:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r59964 r60104 52 52 #include <linux/module.h> 53 53 #include <linux/console.h> 54 #include <linux/vt_kern.h> 54 55 55 56 #include <drm/drmP.h> … … 244 245 static int __init vbox_init(void) 245 246 { 247 unsigned i; 248 246 249 #ifdef CONFIG_VGA_CONSOLE 247 250 if (vgacon_text_force() && vbox_modeset == -1) … … 251 254 if (vbox_modeset == 0) 252 255 return -EINVAL; 256 257 /* Do not load if any of the virtual consoles is in graphics mode to be 258 * sure that we do not pick a fight with a user-mode driver or VESA. */ 259 for (i = 0; i < MAX_NR_CONSOLES - 1; ++i) 260 if (vc_cons[i].d->vc_mode == KD_GRAPHICS) 261 return -EINVAL; 262 253 263 return drm_pci_init(&driver, &vbox_pci_driver); 254 264 }
Note:
See TracChangeset
for help on using the changeset viewer.