aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/snsc.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2015-08-08 16:35:03 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-20 19:32:35 -0700
commit2544007b0534ff21781c599115922b9a9db289b5 (patch)
tree9593c9c26519b73a4b847c53a44fba37e65fecf5 /drivers/char/snsc.c
parentdrivers/char: make hpet.c explicitly non-modular (diff)
downloadlinux-dev-2544007b0534ff21781c599115922b9a9db289b5.tar.xz
linux-dev-2544007b0534ff21781c599115922b9a9db289b5.zip
drivers/char: make SGI snsc.c driver explicitly non-modular
The Kconfig for this driver is currently: config SGI_SNSC bool "SGI Altix system controller communication support" ...meaning that it currently is not being built as a module by anyone. Lets remove all 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: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/snsc.c')
-rw-r--r--drivers/char/snsc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c
index 8a80ead8d316..94006f9c2e43 100644
--- a/drivers/char/snsc.c
+++ b/drivers/char/snsc.c
@@ -19,7 +19,7 @@
#include <linux/sched.h>
#include <linux/device.h>
#include <linux/poll.h>
-#include <linux/module.h>
+#include <linux/init.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <asm/sn/io.h>
@@ -461,5 +461,4 @@ scdrv_init(void)
}
return 0;
}
-
-module_init(scdrv_init);
+device_initcall(scdrv_init);