X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fchar_dev.c;h=68e510b88457e85d8831aa0b48a0479c137d3cb3;hb=9a6ab769bdacc65e7d4e931034e12e02c357c4d3;hp=2c7a8b5b45989b25d40f8cb6a283d7ffb8940c5a;hpb=b297d520b9af536d5580ac505dd316be4cf5560c;p=karo-tx-linux.git diff --git a/fs/char_dev.c b/fs/char_dev.c index 2c7a8b5b4598..68e510b88457 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c @@ -55,7 +55,6 @@ static struct char_device_struct { unsigned int baseminor; int minorct; char name[64]; - struct file_operations *fops; struct cdev *cdev; /* will die */ } *chrdevs[CHRDEV_MAJOR_HASH_SIZE]; @@ -357,7 +356,7 @@ void cdev_put(struct cdev *p) /* * Called every time a character special file is opened */ -int chrdev_open(struct inode * inode, struct file * filp) +static int chrdev_open(struct inode *inode, struct file *filp) { struct cdev *p; struct cdev *new = NULL;