]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: make base more explicitly non-modular
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 3 Jul 2016 20:31:53 +0000 (16:31 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 8 Jul 2016 12:22:58 +0000 (22:22 +1000)
commitcc24086f3101e2b13e6e2400795254d5d8ef0188
tree81b1a2dde6ee08384b2a3b20e5c13816a90980e8
parentc91d474a5f5a95774621a643009285926dc85e99
cxl: make base more explicitly non-modular

The Kconfig/Makefile currently controlling compilation of this code is:

drivers/misc/cxl/Kconfig:config CXL_BASE
drivers/misc/cxl/Kconfig:       bool

drivers/misc/cxl/Makefile:obj-$(CONFIG_CXL_BASE)          += base.o

...meaning that it currently is not being built as a module by anyone.

Lets convert the one module_init into device_initcall so that
when reading the driver it more clear that it is builtin-only.

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

We don't replace module.h with init.h since the file is doing
other modular stuff (module_get/put) even though it is built-in.

Cc: Ian Munsie <imunsie@au1.ibm.com>
Cc: Michael Neuling <mikey@neuling.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/base.c