summaryrefslogtreecommitdiffstats
path: root/include/sys/sunddi.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-08-10 03:50:36 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-08-10 03:50:36 +0000
commit46c685d0c47df8c6271c8914a03d256a5b1f7bd3 (patch)
treeeb73090abdf89ea2aad7699ad5f918e823969105 /include/sys/sunddi.h
parent877a32e91eb69b15744aa85ad22db385bd522b60 (diff)
Add class / device portability code. Two autoconf tests
were added to cover the 3 possible APIs from 2.6.9 to 2.6.26. We attempt to use the newest interfaces and if not available fallback to the oldest. This a rework of some changes proposed by Ricardo for RHEL4. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@150 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/sunddi.h')
-rw-r--r--include/sys/sunddi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/sunddi.h b/include/sys/sunddi.h
index a80ae454d..764ae3820 100644
--- a/include/sys/sunddi.h
+++ b/include/sys/sunddi.h
@@ -35,7 +35,7 @@
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/list.h>
-#include <linux/device.h>
+#include <spl-device.h>
typedef int ddi_devid_t;
@@ -81,7 +81,7 @@ typedef struct dev_info {
kmutex_t di_lock;
struct dev_ops *di_ops;
struct cdev *di_cdev;
- struct class *di_class;
+ spl_class *di_class;
major_t di_major;
minor_t di_minor;
dev_t di_dev;