diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-06-13 14:03:36 -0400 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-10-24 04:45:31 -0400 |
commit | c4742ed32b39d1207162d09045ad23cef5139b51 (patch) | |
tree | a4827eaf3048f5a8fde724c9194d0e6140b426fb | |
parent | 02163199bed1aae49f9ebd2a2172523148c0aaa2 (diff) |
reset: sunxi: make it explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/reset/Kconfig:config RESET_SUNXI
drivers/reset/Kconfig: bool "Allwinner SoCs Reset Driver" if COMPILE_TEST && !ARCH_SUNXI
drivers/reset/Kconfig: default ARCH_SUNXI
or
arch/arm/mach-sunxi/Kconfig:menuconfig ARCH_SUNXI
arch/arm/mach-sunxi/Kconfig: bool "Allwinner SoCs" if ARCH_MULTI_V7
...meaning that it currently is not being built as a module by anyone.
Lets remove the few remaining traces of modular macro usage, 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.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r-- | drivers/reset/reset-sunxi.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index 3080190b3f90..b44f6b5f87b6 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | #include <linux/err.h> | 14 | #include <linux/err.h> |
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/module.h> | 16 | #include <linux/init.h> |
17 | #include <linux/of.h> | 17 | #include <linux/of.h> |
18 | #include <linux/of_address.h> | 18 | #include <linux/of_address.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
@@ -142,7 +142,6 @@ static const struct of_device_id sunxi_reset_dt_ids[] = { | |||
142 | { .compatible = "allwinner,sun6i-a31-clock-reset", }, | 142 | { .compatible = "allwinner,sun6i-a31-clock-reset", }, |
143 | { /* sentinel */ }, | 143 | { /* sentinel */ }, |
144 | }; | 144 | }; |
145 | MODULE_DEVICE_TABLE(of, sunxi_reset_dt_ids); | ||
146 | 145 | ||
147 | static int sunxi_reset_probe(struct platform_device *pdev) | 146 | static int sunxi_reset_probe(struct platform_device *pdev) |
148 | { | 147 | { |
@@ -175,8 +174,4 @@ static struct platform_driver sunxi_reset_driver = { | |||
175 | .of_match_table = sunxi_reset_dt_ids, | 174 | .of_match_table = sunxi_reset_dt_ids, |
176 | }, | 175 | }, |
177 | }; | 176 | }; |
178 | module_platform_driver(sunxi_reset_driver); | 177 | builtin_platform_driver(sunxi_reset_driver); |
179 | |||
180 | MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com"); | ||
181 | MODULE_DESCRIPTION("Allwinner SoCs Reset Controller Driver"); | ||
182 | MODULE_LICENSE("GPL"); | ||