level 12
acpi_os_wait_events_complete.patch
diff --git a/kernel/nv-acpi.c b/kernel/nv-acpi.c
index b0138cd..3dfc691 100644
--- a/kernel/nv-acpi.c
+++ b/kernel/nv-acpi.c
@@ -300,7
+3
00,7 @@ static int nv_acpi_remove(struct acpi_device *device, int type)
nv_printf(NV_DBG_INFO,
"NVRM: nv_acpi_remove: failed to disable display switch events (%d)!\n", status);
}
-
+/*
if (pNvAcpiObject->notify_handler_installed)
{
NV_ACPI_OS_WAIT_EVENTS_COMPLETE();
@@ -308,7 +308,7 @@ static int nv_acpi_remove(struct acpi_device *device, int type)
// remove event notifier
status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);
}
-
+*/
if (pNvAcpiObject->notify_handler_installed &&
ACPI_FAILURE(status))
{
kernel_v3.14.patch
--- a/kernel/nv-linux.h 2014-02-27 23:33:06.000000000 +0200
+++ b/kernel/nv-linux.h 2014-03-03 18:46:03.985483359 +0200
@@ -273,8 +273,7 @@
#endif
#if !defined(NV_VMWARE) && defined(CONFIG_ACPI)
-#include <acpi/acpi.h>
-#include <acpi/acpi_drivers.h>
+#include <linux/acpi.h>
#if defined(NV_ACPI_DEVICE_OPS_HAS_MATCH) || defined(ACPI_VIDEO_HID)
#define NV_LINUX_ACPI_EVENTS_SUPPORTED 1
#endif