From 463082d4d3141d89f5d174d4a85800501f71d5db Mon Sep 17 00:00:00 2001
From: Alberto Milone <alberto.milone@canonical.com>
Date: Fri, 22 Nov 2013 10:15:22 +0100
Subject: [PATCH 1/1] Do not define __devinit as __init in linux >= 3.8 as
 __init was removed

Thanks to Krzysztof Kolasa for the patch.
---
 src/include/linuxver.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x86-64/src/include/linuxver.h b/x86-64/src/include/linuxver.h
index 5548e71..5044739 100644
--- a/x86-64/src/include/linuxver.h
+++ b/x86-64/src/include/linuxver.h
@@ -169,8 +169,12 @@ typedef irqreturn_t(*FN_ISR) (int irq, void *dev_id, struct pt_regs *ptregs);
 #define __devexit
 #endif
 #ifndef __devinit
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
+#define __devinit
+#else
 #define __devinit	__init
 #endif
+#endif
 #ifndef __devinitdata
 #define __devinitdata
 #endif
-- 
1.7.9.5
