summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-07 16:18:13 +0000
committerqwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-07 16:18:13 +0000
commit1291d89565ebc44ecc7eca1b263b274506b23eac (patch)
treec59af8abe6e281fbe4ce1087dbe6602c15e76183 /kernel
parent6ef8eb9d00ee602c2fbec09984ec1bfd53cfa7db (diff)
Fix compilation when using devfs
(closes issue #12156) Reported by: zandbelt Patches: zaptel-1.4.9.2-devfs-mode.patch uploaded by zandbelt (license 33) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3964 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel')
-rw-r--r--kernel/zaptel-base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/zaptel-base.c b/kernel/zaptel-base.c
index 3ecee1a..f98494d 100644
--- a/kernel/zaptel-base.c
+++ b/kernel/zaptel-base.c
@@ -7351,6 +7351,10 @@ static void __exit watchdog_cleanup(void)
int zt_register_chardev(struct zt_chardev *dev)
{
+#ifdef CONFIG_DEVFS_FS
+ umode_t mode = S_IFCHR|S_IRUGO|S_IWUGO;
+#endif /* CONFIG_DEVFS_FS */
+
#ifdef CONFIG_ZAP_UDEV
char udevname[strlen(dev->name) + 3];