]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
connector: make cn_proc explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 4 Jul 2016 21:50:58 +0000 (17:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 18:40:47 +0000 (11:40 -0700)
The Kconfig controlling build of this code is currently:

drivers/connector/Kconfig:config PROC_EVENTS
drivers/connector/Kconfig:      bool "Report process events to userspace"

...meaning that it currently is not being built as a module by anyone.
Lets remove the two modular references, so that when reading the driver
there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.

Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/cn_proc.c

index b02f9c606e0baa59023629b3c1cba8c7ebfbc686..a782ce87715c5ccc5270428d40ac0a4bd0832340 100644 (file)
@@ -22,7 +22,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-#include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/ktime.h>
 #include <linux/init.h>
@@ -390,5 +389,4 @@ static int __init cn_proc_init(void)
        }
        return 0;
 }
-
-module_init(cn_proc_init);
+device_initcall(cn_proc_init);