From 3607f64fc6753186209d6f35ef8f49c995b581b5 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 12 Feb 2013 11:29:51 +0100 Subject: unmodified_drivers: __devinit was removed in linux-3.8 Signed-off-by: Olaf Hering Merge with __init handling. Signed-off-by: Jan Beulich Committed-by: Jan Beulich --- .../linux-2.6/compat-include/xen/platform-compat.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index 595d012293..57afc726c7 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -13,10 +13,19 @@ #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED #endif -#if defined(_LINUX_INIT_H) && !defined(__init) +#ifdef _LINUX_INIT_H + +#ifndef __init #define __init #endif +#ifndef __devinit +#define __devinit +#define __devinitdata +#endif + +#endif /* _LINUX_INIT_H */ + #if defined(__LINUX_CACHE_H) && !defined(__read_mostly) #define __read_mostly #endif -- cgit v1.2.3