From 55de75ccb853f5e4443fd484e5eb95e1342e72bd Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 6 May 2011 05:20:41 +0400 Subject: [PATCH] Drop ioctl It was never used for anything and now that kernel has changed file_operations structure things break. --- mod/itc-mod.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mod/itc-mod.c b/mod/itc-mod.c index 6a81958..25e1cd8 100644 --- a/mod/itc-mod.c +++ b/mod/itc-mod.c @@ -263,10 +263,6 @@ itc_open (struct inode * inode, struct file * file); static int itc_release (struct inode * inode, struct file * file); -static int -itc_ioctl (struct inode * inode, struct file * file, - unsigned int cmd, unsigned long arg); - static ssize_t itc_read (struct file * file, char * buf, size_t count, loff_t * ppos); @@ -275,7 +271,6 @@ static struct file_operations itc_fops = .owner = THIS_MODULE, .open = itc_open, .release = itc_release, - .ioctl = itc_ioctl, .llseek = no_llseek, .read = itc_read, }; @@ -394,18 +389,6 @@ itc_read (struct file *file, char * buf, size_t count, loff_t * ppos) /********************************************************************** * - * ioctl handler - * - **********************************************************************/ -static int -itc_ioctl (struct inode * inode, struct file * filp, - unsigned int cmd, unsigned long arg) -{ - return -EINVAL; -} - -/********************************************************************** - * * Module constructor * **********************************************************************/ -- 2.11.4.GIT