Staging: comedi: proc: Add __init prefix
authorCheah Kok Cheong <thrust73@gmail.com>
Fri, 30 Dec 2016 11:26:50 +0000 (19:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:30:21 +0000 (15:30 +0100)
Add __init prefix so that symbol will be discarded after
module loading.

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 3513f4c..6d13b51 100644 (file)
@@ -86,7 +86,7 @@ static const struct file_operations comedi_proc_fops = {
        .release        = single_release,
 };
 
-void comedi_proc_init(void)
+void __init comedi_proc_init(void)
 {
        proc_create("comedi", 0444, NULL, &comedi_proc_fops);
 }