--- 1/usr/src/nv/nvacpi.c +++ 1/usr/src/nv/nvacpi.c @@ -259,7 +259,9 @@ static int nv_acpi_remove(struct acpi_device *device, int type) if (pNvAcpiObject->notify_handler_installed) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) NV_ACPI_OS_WAIT_EVENTS_COMPLETE(); +#endif // remove event notifier status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);