summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/divert/divert_procfs.c
diff options
context:
space:
mode:
authorCharlie Shepherd <masterdriverz@gentoo.org>2007-07-31 09:39:45 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-08-01 00:39:44 +0200
commit732781daa4fcb31f96028bf26a219e53d256ddd2 (patch)
treee9e9a578e8b284763725a2cc82dcff246d229810 /drivers/isdn/divert/divert_procfs.c
parentspi device setup gets better error checking (diff)
downloadlinux-732781daa4fcb31f96028bf26a219e53d256ddd2.tar.xz
linux-732781daa4fcb31f96028bf26a219e53d256ddd2.zip
Remove 'isdn_* is defined but unused' warnings
Move the #ifdef guard above these functions to remove the warnings. Signed-off-by: Charlie Shepherd <masterdriverz@gentoo.org> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/isdn/divert/divert_procfs.c')
-rw-r--r--drivers/isdn/divert/divert_procfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/divert/divert_procfs.c b/drivers/isdn/divert/divert_procfs.c
index be77ee625bb7..559a0d0244cf 100644
--- a/drivers/isdn/divert/divert_procfs.c
+++ b/drivers/isdn/divert/divert_procfs.c
@@ -70,6 +70,8 @@ put_info_buffer(char *cp)
wake_up_interruptible(&(rd_queue));
} /* put_info_buffer */
+#ifdef CONFIG_PROC_FS
+
/**********************************/
/* deflection device read routine */
/**********************************/
@@ -253,8 +255,6 @@ isdn_divert_ioctl(struct inode *inode, struct file *file,
return copy_to_user((void __user *)arg, &dioctl, sizeof(dioctl)) ? -EFAULT : 0;
} /* isdn_divert_ioctl */
-
-#ifdef CONFIG_PROC_FS
static const struct file_operations isdn_fops =
{
.owner = THIS_MODULE,