--- a/nv-acpi.c.orig +++ b/nv-acpi.c @@ -14,6 +14,10 @@ #include "os-interface.h" #include "nv-linux.h" #include "nv-reg.h" + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0) && defined(ACPI_HANDLE) +#define DEVICE_ACPI_HANDLE(a) ACPI_HANDLE(a) +#endif #if defined(NV_LINUX_ACPI_EVENTS_SUPPORTED) static RM_STATUS nv_acpi_extract_integer (const union acpi_object *, void *, NvU32, NvU32 *);