diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-07-04 17:12:12 -0400 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2016-07-06 18:20:26 -0400 |
commit | 1f501d632ed2f719d36c62ba1f8a68de0200391a (patch) | |
tree | 314ad1b2d0a0a4339b2d128469168ebe2956fe04 | |
parent | a718ce38d4cdcd1377d5b2e40b10acd80e63af29 (diff) |
clk: meson: make gxbb explicitly non-modular
The Kconfig currently controlling compilation of this code is:
drivers/clk/meson/Kconfig:config COMMON_CLK_GXBB
drivers/clk/meson/Kconfig: bool
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.
Also note that MODULE_DEVICE_TABLE and ALIAS are no-op for non-modules.
We also delete the MODULE_LICENSE tag etc. since all that information
was (or is now) contained at the top of the file in the comments.
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Carlo Caione <carlo@caione.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: linux-clk@vger.kernel.org
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20160704211220.5685-3-paul.gortmaker@windriver.com
-rw-r--r-- | drivers/clk/meson/gxbb.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 007b7157cf4b..a4c6684b3019 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c | |||
@@ -1,4 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * AmLogic S905 / GXBB Clock Controller Driver | ||
3 | * | ||
2 | * Copyright (c) 2016 AmLogic, Inc. | 4 | * Copyright (c) 2016 AmLogic, Inc. |
3 | * Michael Turquette <mturquette@baylibre.com> | 5 | * Michael Turquette <mturquette@baylibre.com> |
4 | * | 6 | * |
@@ -19,7 +21,7 @@ | |||
19 | #include <linux/clk-provider.h> | 21 | #include <linux/clk-provider.h> |
20 | #include <linux/of_address.h> | 22 | #include <linux/of_address.h> |
21 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
22 | #include <linux/module.h> | 24 | #include <linux/init.h> |
23 | 25 | ||
24 | #include "clkc.h" | 26 | #include "clkc.h" |
25 | #include "gxbb.h" | 27 | #include "gxbb.h" |
@@ -926,7 +928,6 @@ static const struct of_device_id gxbb_clkc_match_table[] = { | |||
926 | { .compatible = "amlogic,gxbb-clkc" }, | 928 | { .compatible = "amlogic,gxbb-clkc" }, |
927 | { } | 929 | { } |
928 | }; | 930 | }; |
929 | MODULE_DEVICE_TABLE(of, gxbb_match_table); | ||
930 | 931 | ||
931 | static struct platform_driver gxbb_driver = { | 932 | static struct platform_driver gxbb_driver = { |
932 | .probe = gxbb_clkc_probe, | 933 | .probe = gxbb_clkc_probe, |
@@ -940,15 +941,4 @@ static int __init gxbb_clkc_init(void) | |||
940 | { | 941 | { |
941 | return platform_driver_register(&gxbb_driver); | 942 | return platform_driver_register(&gxbb_driver); |
942 | } | 943 | } |
943 | module_init(gxbb_clkc_init); | 944 | device_initcall(gxbb_clkc_init); |
944 | |||
945 | static void __exit gxbb_clkc_exit(void) | ||
946 | { | ||
947 | platform_driver_unregister(&gxbb_driver); | ||
948 | } | ||
949 | module_exit(gxbb_clkc_exit); | ||
950 | |||
951 | MODULE_DESCRIPTION("AmLogic S905 / GXBB Clock Controller Driver"); | ||
952 | MODULE_LICENSE("GPL v2"); | ||
953 | MODULE_ALIAS("platform:gxbb-clkc"); | ||
954 | MODULE_AUTHOR("Michael Turquette <mturquette@baylibre.com>"); | ||