Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 565060 | Differences between
and this patch

Collapse All | Expand All

(-)vmci-only/linux/driver.c.orig (-1 / +4 lines)
Lines 2484-2496 Link Here
2484
2484
2485
      VMCI_HostCleanup();
2485
      VMCI_HostCleanup();
2486
2486
2487
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
2488
      misc_deregister(&linuxState.misc);
2489
#else
2487
      retval = misc_deregister(&linuxState.misc);
2490
      retval = misc_deregister(&linuxState.misc);
2488
      if (retval) {
2491
      if (retval) {
2489
         Warning(LGPFX "Module %s: error unregistering\n", VMCI_MODULE_NAME);
2492
         Warning(LGPFX "Module %s: error unregistering\n", VMCI_MODULE_NAME);
2490
      } else {
2493
      } else {
2491
         Log(LGPFX"Module %s: unloaded\n", VMCI_MODULE_NAME);
2494
         Log(LGPFX"Module %s: unloaded\n", VMCI_MODULE_NAME);
2492
      }
2495
      }
2493
2496
#endif
2494
      hostDeviceInit = FALSE;
2497
      hostDeviceInit = FALSE;
2495
   }
2498
   }
2496
2499
(-)vmmon-only/linux/driver.c.orig (+4 lines)
Lines 400-409 Link Here
400
#ifdef VMX86_DEVEL
400
#ifdef VMX86_DEVEL
401
   unregister_chrdev(linuxState.major, linuxState.deviceName);
401
   unregister_chrdev(linuxState.major, linuxState.deviceName);
402
#else
402
#else
403
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
404
   misc_deregister(&linuxState.misc);
405
#else
403
   if (misc_deregister(&linuxState.misc)) {
406
   if (misc_deregister(&linuxState.misc)) {
404
      Warning("Module %s: error unregistering\n", linuxState.deviceName);
407
      Warning("Module %s: error unregistering\n", linuxState.deviceName);
405
   }
408
   }
406
#endif
409
#endif
410
#endif
407
411
408
   Log("Module %s: unloaded\n", linuxState.deviceName);
412
   Log("Module %s: unloaded\n", linuxState.deviceName);
409
413

Return to bug 565060