summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xdefs.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 16:09:06 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-05-19 16:09:06 +0000
commit148761cc8b944195d66e8f5be2e59216f0c8114c (patch)
treeca320f024553fef7ea721759ec8a2bba2b2c2111 /drivers/dahdi/xpp/xdefs.h
parent307fc61247e696b18d84d7fd59f6576b1aca9cec (diff)
xpp: 'owner' property of procfs was dropped in 2.6.30.
This adds a compatibility macro for older versions that is a noop for kernels >= 2.6.30. (closes issue #14964) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6642 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xdefs.h')
-rw-r--r--drivers/dahdi/xpp/xdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xdefs.h b/drivers/dahdi/xpp/xdefs.h
index e55c706..ad89d4c 100644
--- a/drivers/dahdi/xpp/xdefs.h
+++ b/drivers/dahdi/xpp/xdefs.h
@@ -143,6 +143,11 @@ typedef unsigned char byte;
#define dev_set_name(dev, format, ...) \
snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__);
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+#define SET_PROC_DIRENTRY_OWNER(p) do { (p)->owner = THIS_MODULE; } while(0);
+#else
+#define SET_PROC_DIRENTRY_OWNER(p) do { } while(0);
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the