summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2013-11-22 17:04:24 +0100
committerSuren A. Chilingaryan <csa@suren.me>2013-11-22 17:04:24 +0100
commitba1ef9d055cbb94cd06c92709546174047f02a15 (patch)
tree9bd2c8bdd22a6b6b4fa641039ca8a688810562e2 /driver
parentbdae4224e54fd4fb1fea88299b4cbd9664e2f800 (diff)
downloadpcitool-ba1ef9d055cbb94cd06c92709546174047f02a15.tar.gz
pcitool-ba1ef9d055cbb94cd06c92709546174047f02a15.tar.bz2
pcitool-ba1ef9d055cbb94cd06c92709546174047f02a15.tar.xz
pcitool-ba1ef9d055cbb94cd06c92709546174047f02a15.zip
__devinit/__devexit are removed in 3.8
Diffstat (limited to 'driver')
-rw-r--r--driver/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver/compat.h b/driver/compat.h
index 80f232b..25e402a 100644
--- a/driver/compat.h
+++ b/driver/compat.h
@@ -10,6 +10,12 @@
#ifndef _COMPAT_H
#define _COMPAT_H
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
+# define __devinit
+# define __devexit
+# define __devinitdata
+#endif
+
/* dev_name is the wrapper one needs to use to access what was formerly called
* bus_id in struct device. However, before 2.6.27, direct access was necessary,
* so we provide our own version. */