cxl: make base more explicitly non-modular
mpe at ellerman.id.au
Mon Jul 11 20:19:30 AEST 2016
On Sun, 2016-03-07 at 20:31:53 UTC, Paul Gortmaker wrote:
> 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 at au1.ibm.com>
> Cc: Michael Neuling <mikey at neuling.org>
> Cc: linuxppc-dev at lists.ozlabs.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
> Acked-by: Ian Munsie <imunsie at au1.ibm.com>
Applied to powerpc next, thanks.
More information about the Linuxppc-dev