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

mfd: sun6i-prcm: Make it explicitly non-modular

The Kconfig currently controlling compilation of this code is:

drivers/mfd/Kconfig:config MFD_SUN6I_PRCM
drivers/mfd/Kconfig: bool "Allwinner A31 PRCM controller"

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

Lets remove the couple traces of modularity so that when reading the
driver there is no doubt it is builtin-only.

Since module_platform_driver() uses the same init level priority as
builtin_platform_driver() the init ordering remains unchanged with
this commit.

We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Paul Gortmaker and committed by
Lee Jones
391cd33a da4d0f24

+2 -6
+2 -6
drivers/mfd/sun6i-prcm.c
··· 9 9 */ 10 10 11 11 #include <linux/mfd/core.h> 12 - #include <linux/module.h> 12 + #include <linux/init.h> 13 13 #include <linux/of.h> 14 14 15 15 struct prcm_data { ··· 170 170 }, 171 171 .probe = sun6i_prcm_probe, 172 172 }; 173 - module_platform_driver(sun6i_prcm_driver); 174 - 175 - MODULE_AUTHOR("Boris BREZILLON <boris.brezillon@free-electrons.com>"); 176 - MODULE_DESCRIPTION("Allwinner sun6i PRCM driver"); 177 - MODULE_LICENSE("GPL v2"); 173 + builtin_platform_driver(sun6i_prcm_driver);