Staging: comedi: proc: Add module owner
authorCheah Kok Cheong <thrust73@gmail.com>
Fri, 30 Dec 2016 11:27:17 +0000 (19:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:30:21 +0000 (15:30 +0100)
Since this is a loadable kernel module, add module ownership
to follow LKM semantics.

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/proc.c

index 6d13b5156c9701afe88439166de2cdd684066b00..99b23b2e32dd632bceddef1673914e316f33dd9d 100644 (file)
@@ -80,6 +80,7 @@ static int comedi_proc_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations comedi_proc_fops = {
+       .owner          = THIS_MODULE,
        .open           = comedi_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,