Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paul Gortmaker and committed by
Greg Kroah-Hartman
2544007b a8cedfec

+2 -3
+2 -3
drivers/char/snsc.c
··· 19 19 #include <linux/sched.h> 20 20 #include <linux/device.h> 21 21 #include <linux/poll.h> 22 - #include <linux/module.h> 22 + #include <linux/init.h> 23 23 #include <linux/slab.h> 24 24 #include <linux/mutex.h> 25 25 #include <asm/sn/io.h> ··· 461 461 } 462 462 return 0; 463 463 } 464 - 465 - module_init(scdrv_init); 464 + device_initcall(scdrv_init);