aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2013-02-14 14:26:03 +0100
committerOlaf Hering <olaf@aepfle.de>2013-02-14 14:26:03 +0100
commite5c066faac4c7ddf301a9e7cdd80fd0744267b2d (patch)
treedfea59dec5f9fe5baf8a30d9a8b9d72b3db34c06 /unmodified_drivers
parentb59e671e0625d5f97c51a04ee1b1214840ec539a (diff)
downloadxen-e5c066faac4c7ddf301a9e7cdd80fd0744267b2d.tar.gz
xen-e5c066faac4c7ddf301a9e7cdd80fd0744267b2d.tar.bz2
xen-e5c066faac4c7ddf301a9e7cdd80fd0744267b2d.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
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h11
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