aboutsummaryrefslogtreecommitdiffstats
path: root/include/spl-device.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-05-20 11:54:40 -0700
committerBrian Behlendorf <[email protected]>2009-05-20 11:54:40 -0700
commitfe4573928fc73590373a074ef9b068c6286d9a26 (patch)
tree8e1735c180f6b83f1a5250c366b9fac97267614c /include/spl-device.h
parenta093c6a49927912642ccc35e99f74ecf37d00334 (diff)
SLES10 Fixes (part 5):
- Fix incorrect mapping for spl_device_create()->class_device_create() which is the prefered API for 2.6.13 to 2.6.17 based kernels.
Diffstat (limited to 'include/spl-device.h')
-rw-r--r--include/spl-device.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/spl-device.h b/include/spl-device.h
index c82f65dfe..d8c2d09ba 100644
--- a/include/spl-device.h
+++ b/include/spl-device.h
@@ -39,7 +39,7 @@ typedef struct class_device spl_device;
#define spl_class_create(mod, name) class_create(mod, name)
#define spl_class_destroy(cls) class_destroy(cls)
#define spl_device_create(cls, parent, devt, device, fmt, args...) \
- class_device_create(cls, devt, device, fmt, ## args)
+ class_device_create(cls, parent, devt, device, fmt, ## args)
#define spl_device_destroy(cls, cls_dev, devt) \
class_device_unregister(cls_dev)
@@ -60,7 +60,7 @@ typedef struct class_device spl_class_device;
#define spl_device_destroy(cls, cls_dev, devt) \
class_simple_device_remove(devt)
-#endif
-#endif
+#endif /* HAVE_CLASS_DEVICE_CREATE */
+#endif /* HAVE_DEVICE_CREATE */
#endif /* _SPL_DEVICE_H */