diff options
author | Olaf Hering <olaf@aepfle.de> | 2013-02-14 14:25:21 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2013-02-14 14:25:21 +0100 |
commit | 53fea99d7c26fd5d44adc5fc6326c43ce869f6e9 (patch) | |
tree | a0743460bdcd0ef21b08f613c2191c3d52a3fd29 | |
parent | 485f374230d39e153d7b9786e3d0336bd52ee661 (diff) | |
download | xen-53fea99d7c26fd5d44adc5fc6326c43ce869f6e9.tar.gz xen-53fea99d7c26fd5d44adc5fc6326c43ce869f6e9.tar.bz2 xen-53fea99d7c26fd5d44adc5fc6326c43ce869f6e9.zip |
unmodified_drivers: __devinit was removed in linux-3.8
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Merge with __init handling.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen-unstable changeset: 26526:a37aa55c3cbc
xen-unstable date: Tue Feb 12 10:29:51 UTC 2013
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 |