diff options
| author | Paul Gortmaker <[email protected]> | 2016-09-12 10:40:53 -0400 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2016-10-04 15:48:04 +0100 |
| commit | 391cd33a0b662b8cea381aaa42ce665c4c113785 (patch) | |
| tree | f92bc4c0918e65ec6a0a1f1412b795f3eb5f6c2c | |
| parent | da4d0f2425745efcb765f3c5a308389eb1e56be7 (diff) | |
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 <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
| -rw-r--r-- | drivers/mfd/sun6i-prcm.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/mfd/sun6i-prcm.c b/drivers/mfd/sun6i-prcm.c index 191173166d65..011fcc555945 100644 --- a/drivers/mfd/sun6i-prcm.c +++ b/drivers/mfd/sun6i-prcm.c @@ -9,7 +9,7 @@ */ #include <linux/mfd/core.h> -#include <linux/module.h> +#include <linux/init.h> #include <linux/of.h> struct prcm_data { @@ -170,8 +170,4 @@ static struct platform_driver sun6i_prcm_driver = { }, .probe = sun6i_prcm_probe, }; -module_platform_driver(sun6i_prcm_driver); - -MODULE_AUTHOR("Boris BREZILLON <[email protected]>"); -MODULE_DESCRIPTION("Allwinner sun6i PRCM driver"); -MODULE_LICENSE("GPL v2"); +builtin_platform_driver(sun6i_prcm_driver); |