diff options
author | Kevin Hilman <khilman@baylibre.com> | 2020-11-18 11:14:05 -0800 |
---|---|---|
committer | Jerome Brunet <jbrunet@baylibre.com> | 2020-11-23 09:08:23 +0100 |
commit | 20425f6319480e84f48261fc7c0e4ce61a6d333e (patch) | |
tree | e1b3fb65784a3c40b03306bf44c8b295940f4ca9 /drivers/clk/meson/axg-aoclk.c | |
parent | bae69bfa3a586493469078ec4ca35499b754ba5c (diff) |
clk: meson: enable building as modules
Make it possible to build all clk drivers as modules, but default
remains built-in.
No functional changes.
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20201118191405.36798-1-khilman@baylibre.com
Diffstat (limited to 'drivers/clk/meson/axg-aoclk.c')
-rw-r--r-- | drivers/clk/meson/axg-aoclk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/meson/axg-aoclk.c b/drivers/clk/meson/axg-aoclk.c index b488b40c9d0e..af6db437bcd8 100644 --- a/drivers/clk/meson/axg-aoclk.c +++ b/drivers/clk/meson/axg-aoclk.c @@ -12,6 +12,7 @@ #include <linux/platform_device.h> #include <linux/reset-controller.h> #include <linux/mfd/syscon.h> +#include <linux/module.h> #include "meson-aoclk.h" #include "axg-aoclk.h" @@ -326,6 +327,7 @@ static const struct of_device_id axg_aoclkc_match_table[] = { }, { } }; +MODULE_DEVICE_TABLE(of, axg_aoclkc_match_table); static struct platform_driver axg_aoclkc_driver = { .probe = meson_aoclkc_probe, @@ -335,4 +337,5 @@ static struct platform_driver axg_aoclkc_driver = { }, }; -builtin_platform_driver(axg_aoclkc_driver); +module_platform_driver(axg_aoclkc_driver); +MODULE_LICENSE("GPL v2"); |