Skip to content

Commit

Permalink
connector: make cn_proc explicitly non-modular
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected]
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Paul Gortmaker authored and davem330 committed Jul 5, 2016
1 parent 96329a1 commit 8297f2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/connector/cn_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -390,5 +389,4 @@ static int __init cn_proc_init(void)
}
return 0;
}

module_init(cn_proc_init);
device_initcall(cn_proc_init);

0 comments on commit 8297f2d

Please sign in to comment.