diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-10-27 15:49:09 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-10-27 15:49:09 +0000 |
commit | 0bcecd62480492f36775bc90ed6e86389264c7f3 (patch) | |
tree | 75b99e7ec97bdab5372837937dcca36bd6ab352f /drivers/dahdi/xpp/xbus-core.h | |
parent | 3cf9ba036795c56afa9a6262460e91134ceb64de (diff) |
Fix xpp compile problems on kernel < 2.6.16
Support for kernels that use the older hotplug support rather than the
newer uevent.
Fixes the xpp issue from #13427.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5130 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xbus-core.h')
-rw-r--r-- | drivers/dahdi/xpp/xbus-core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xbus-core.h b/drivers/dahdi/xpp/xbus-core.h index c563c88..92d9b12 100644 --- a/drivers/dahdi/xpp/xbus-core.h +++ b/drivers/dahdi/xpp/xbus-core.h @@ -319,6 +319,20 @@ int xpp_driver_init(void); void xpp_driver_exit(void); int xbus_sysfs_create(xbus_t *xbus); void xbus_sysfs_remove(xbus_t *xbus); + +#ifdef OLD_HOTPLUG_SUPPORT +/* Copy from new kernels lib/kobject_uevent.c */ +enum kobject_action { + KOBJ_ADD, + KOBJ_REMOVE, + KOBJ_CHANGE, + KOBJ_MOUNT, + KOBJ_UMOUNT, + KOBJ_OFFLINE, + KOBJ_ONLINE, +}; +#endif + void astribank_uevent_send(xbus_t *xbus, enum kobject_action act); #endif /* XBUS_CORE_H */ |