mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
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.
This commit is contained in:
parent
a093c6a499
commit
fe4573928f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user